fix(trading): adjust full screen for mobile dialogs (#5666)
This commit is contained in:
parent
67d38ff03e
commit
0bd13a5f7b
@ -38,7 +38,7 @@ const BreakdownTable = forwardRef<AgGridReact, BreakdownTableProps>(
|
|||||||
{
|
{
|
||||||
headerName: t('Market'),
|
headerName: t('Market'),
|
||||||
field: 'market.tradableInstrument.instrument.code',
|
field: 'market.tradableInstrument.instrument.code',
|
||||||
width: 90,
|
maxWidth: 150,
|
||||||
pinned: true,
|
pinned: true,
|
||||||
sort: 'desc',
|
sort: 'desc',
|
||||||
cellRenderer: ({
|
cellRenderer: ({
|
||||||
|
@ -38,14 +38,14 @@ export function Dialog({
|
|||||||
);
|
);
|
||||||
const wrapperClasses = classNames(
|
const wrapperClasses = classNames(
|
||||||
// Dimensions
|
// Dimensions
|
||||||
'max-w-[90vw] p-4 md:p-8',
|
'w-screen sm:max-w-[90vw] p-4 md:p-8',
|
||||||
// Need to apply background and text colors again as content is rendered in a portal
|
// Need to apply background and text colors again as content is rendered in a portal
|
||||||
'dark:bg-black bg-white dark:text-white',
|
'dark:bg-black bg-white dark:text-white',
|
||||||
getIntentBorder(intent),
|
getIntentBorder(intent),
|
||||||
{
|
{
|
||||||
'w-[520px]': size === 'small',
|
'sm:w-[520px]': size === 'small',
|
||||||
'w-[680px]': size === 'medium',
|
'sm:w-[680px]': size === 'medium',
|
||||||
'w-[720px] lg:w-[940px]': size === 'large',
|
'sm:w-[720px] lg:w-[940px]': size === 'large',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user