Skip to content

Commit 8555716

Browse files
committed
fix(Mobile): fix 100vh to 100dvh
1 parent 87bb931 commit 8555716

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

next.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const nextConfig = {
3737
// The image optimization needs to be disabled in a static export
3838
unoptimized: true,
3939
},
40+
distDir: 'build',
4041
output: 'export',
4142
};
4243

src/components/Layouts/Layout/Layout.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
.layoutContainer {
44
display: grid;
55
grid-template-rows: auto 1fr auto;
6-
min-height: 100vh;
6+
min-height: 100dvh;
77
}

src/components/Layouts/LayoutFullscreen/LayoutFullscreen.module.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
.layoutContainer {
44
display: flex;
55
flex-direction: column;
6-
min-height: 100vh;
7-
height: 100vh;
6+
min-height: 100dvh;
7+
height: 100dvh;
88
width: 100%;
99
}
1010

src/components/Modal/Modal.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
width: 100%;
88
height: 100%;
99
max-width: 100%;
10-
max-height: 100vh;
10+
max-height: 100dvh;
1111
display: flex;
1212
flex-direction: column;
1313
justify-content: center;

src/components/Sections/Heros/Hero/Hero.module.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.hero {
44
position: relative;
55
width: 100%;
6-
min-height: 100vh;
6+
min-height: 100dvh;
77

88
.content {
99
display: flex;
@@ -69,7 +69,7 @@
6969
.hero {
7070
.content {
7171
flex-direction: row;
72-
min-height: 100vh;
72+
min-height: 100dvh;
7373
.image {
7474
display: block;
7575
width: calc(370px + 4vw);

src/styles/pages/App.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.webglContainer {
44
position: fixed;
55
width: 100%;
6-
height: 100vh;
6+
height: 100dvh;
77
z-index: -1;
88
}
99

src/styles/pages/Blog.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
.tileSection {
2525
background: $color-bg-transparent;
2626
backdrop-filter: blur(10em);
27-
height: 100vh;
27+
height: 100dvh;
2828
}
2929

3030
.description {

src/styles/pages/Home.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
width: 100%;
2929
background: $color-bg-transparent;
3030
backdrop-filter: blur(10em);
31-
min-height: 100vh;
31+
min-height: 100dvh;
3232

3333
.aboutContent {
3434
position: relative;

0 commit comments

Comments
 (0)