diff --git a/src/app/components/ResponsiveLayer/index.tsx b/src/app/components/ResponsiveLayer/index.tsx index 39bec2464d..3dad3203f1 100644 --- a/src/app/components/ResponsiveLayer/index.tsx +++ b/src/app/components/ResponsiveLayer/index.tsx @@ -36,7 +36,15 @@ export function ResponsiveLayer(props: LayerExtendedProps) { return ( - {props.children} + + {props.children} + ) } diff --git a/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap index 15a97f4dcc..66d24b3c60 100644 --- a/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap @@ -141,12 +141,12 @@ exports[` should match snapshot 1`] = ` display: flex; box-sizing: border-box; max-width: 100%; + margin-bottom: 48px; min-width: 0; min-height: 0; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - height: 90%; padding-top: 24px; padding-bottom: 24px; padding-right: 12px; @@ -309,6 +309,10 @@ exports[` should match snapshot 1`] = ` } +@media only screen and (max-width:768px) { + +} + @media only screen and (max-width:768px) { .c2 { border: solid 1px #0092f6; @@ -346,6 +350,12 @@ exports[` should match snapshot 1`] = ` } } +@media only screen and (max-width:768px) { + .c1 { + margin-bottom: 24px; + } +} + @media only screen and (max-width:768px) { .c1 { padding-top: 12px; @@ -371,6 +381,7 @@ exports[` should match snapshot 1`] = ` >
should match snapshot 1`] = ` -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - width: 100%; - height: 100%; + -webkit-flex: 0 0 auto; + -ms-flex: 0 0 auto; + flex: 0 0 auto; } .c6 { @@ -724,6 +725,7 @@ exports[` should match snapshot 1`] = ` />
should match snapshot 1`] = ` display: flex; box-sizing: border-box; max-width: 100%; + margin-bottom: 48px; min-width: 0; min-height: 0; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - height: 90%; padding-top: 24px; padding-bottom: 24px; padding-right: 12px; @@ -288,6 +288,10 @@ exports[` should match snapshot 1`] = ` } +@media only screen and (max-width:768px) { + +} + @media only screen and (max-width:768px) { .c2 { border: solid 1px #0092f6; @@ -319,6 +323,12 @@ exports[` should match snapshot 1`] = ` } } +@media only screen and (max-width:768px) { + .c1 { + margin-bottom: 24px; + } +} + @media only screen and (max-width:768px) { .c1 { padding-top: 12px; @@ -342,6 +352,7 @@ exports[` should match snapshot 1`] = ` >
{ gap="small" pad={{ vertical: 'medium', right: 'small' }} overflow={{ vertical: 'auto' }} - height={isMobile ? mobileScrollableAreaHeight : layerScrollableAreaHeight} + style={{ maxHeight: layerScrollableAreaHeight }} + margin={{ bottom: isMobile ? 'large' : 'none' }} > {children} diff --git a/src/app/components/Toolbar/Features/layer.ts b/src/app/components/Toolbar/Features/layer.ts index b38ef95a66..ab2316903f 100644 --- a/src/app/components/Toolbar/Features/layer.ts +++ b/src/app/components/Toolbar/Features/layer.ts @@ -1,3 +1,2 @@ -export const mobileScrollableAreaHeight = '90%' export const layerScrollableAreaHeight = '400px' export const layerOverlayMinHeight = '435px' // Keep child modals height in sync with parent modal diff --git a/src/app/pages/OpenWalletPage/Features/ImportAccountsSelectionModal/__tests__/__snapshots__/index.test.tsx.snap b/src/app/pages/OpenWalletPage/Features/ImportAccountsSelectionModal/__tests__/__snapshots__/index.test.tsx.snap index ea78699c97..6745016814 100644 --- a/src/app/pages/OpenWalletPage/Features/ImportAccountsSelectionModal/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/pages/OpenWalletPage/Features/ImportAccountsSelectionModal/__tests__/__snapshots__/index.test.tsx.snap @@ -26,8 +26,9 @@ exports[` should match snapshot 1`] = ` -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - width: 100%; - height: 100%; + -webkit-flex: 0 0 auto; + -ms-flex: 0 0 auto; + flex: 0 0 auto; } .c6 { @@ -645,6 +646,7 @@ exports[` should match snapshot 1`] = ` />