File tree 4 files changed +9
-8
lines changed
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ export const Document = ({ children }: { children: ReactNode }) => {
18
18
return (
19
19
< html lang = { locale ?. lang } dir = { locale ?. dir } >
20
20
< head >
21
- < meta
22
- name = "viewport"
23
- content = "width=device-width,initial-scale=1,viewport-fit=cover"
24
- />
25
21
< meta
26
22
name = "apple-mobile-web-app-status-bar-style"
27
23
content = "black-translucent"
Original file line number Diff line number Diff line change 1
1
import { ReactNode } from 'react' ;
2
2
3
- import { Metadata } from 'next' ;
3
+ import { Metadata , Viewport } from 'next' ;
4
4
5
5
import { Document } from '@/app/Document' ;
6
6
import { NextLoader } from '@/app/NextLoader' ;
@@ -15,6 +15,12 @@ export const metadata: Metadata = {
15
15
description : 'Opinionated UI starter' ,
16
16
} ;
17
17
18
+ export const viewport : Viewport = {
19
+ width : 'device-width' ,
20
+ initialScale : 1 ,
21
+ viewportFit : 'cover' ,
22
+ } ;
23
+
18
24
export default async function RootLayout ( {
19
25
children,
20
26
} : {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const Viewport = (props: FlexProps) => {
12
12
// Allows new units used if supported
13
13
style = { {
14
14
maxWidth : '100dvw' ,
15
- minHeight : '100dvh ' ,
15
+ minHeight : '100lvh ' ,
16
16
} }
17
17
{ ...props }
18
18
/>
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ export const AppLayoutPage = ({
73
73
< AppLayoutPageContext . Provider value = { value } >
74
74
< Flex
75
75
position = "relative"
76
- pt = "safe-top"
77
76
as = { Scrollbars }
78
77
direction = "column"
79
78
flex = { 1 }
@@ -86,7 +85,7 @@ export const AppLayoutPage = ({
86
85
} }
87
86
{ ...rest }
88
87
>
89
- < PageContainer pt = { 4 } pb = { 16 } { ...containerProps } >
88
+ < PageContainer mt = "safe-top" pt = { 4 } pb = { 16 } { ...containerProps } >
90
89
{ children }
91
90
</ PageContainer >
92
91
< Box w = "full" h = "0" pb = "safe-bottom" />
You can’t perform that action at this time.
0 commit comments