Commit 20b4185f authored by tom's avatar tom

fix dialog full size on mobile and dapp page layout

parent 867a57a9
...@@ -162,7 +162,7 @@ export const recipe = defineSlotRecipe({ ...@@ -162,7 +162,7 @@ export const recipe = defineSlotRecipe({
full: { full: {
content: { content: {
maxW: '100vw', maxW: '100vw',
minH: '100vh', minH: '100dvh',
'--dialog-margin': '0', '--dialog-margin': '0',
borderRadius: '0', borderRadius: '0',
}, },
......
...@@ -7,6 +7,9 @@ import HeaderMobile from 'ui/snippets/header/HeaderMobile'; ...@@ -7,6 +7,9 @@ import HeaderMobile from 'ui/snippets/header/HeaderMobile';
import * as Layout from './components'; import * as Layout from './components';
const TOP_BAR_HEIGHT = 36;
const HEADER_HEIGHT_MOBILE = 56;
const LayoutDefault = ({ children }: Props) => { const LayoutDefault = ({ children }: Props) => {
return ( return (
<Layout.Container <Layout.Container
...@@ -17,7 +20,13 @@ const LayoutDefault = ({ children }: Props) => { ...@@ -17,7 +20,13 @@ const LayoutDefault = ({ children }: Props) => {
> >
<Layout.TopRow/> <Layout.TopRow/>
<HeaderMobile hideSearchBar/> <HeaderMobile hideSearchBar/>
<Layout.MainArea minH="auto" flex={ 1 }> <Layout.MainArea
minH={{
base: `calc(100dvh - ${ TOP_BAR_HEIGHT + HEADER_HEIGHT_MOBILE }px)`,
lg: `calc(100dvh - ${ TOP_BAR_HEIGHT }px)`,
}}
flex={ 1 }
>
<Layout.MainColumn <Layout.MainColumn
paddingTop={{ base: 0, lg: 0 }} paddingTop={{ base: 0, lg: 0 }}
paddingBottom={ 0 } paddingBottom={ 0 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment