Skip to content

Commit bc3129e

Browse files
Fix sky jump view height (#410)
1 parent 4dd2049 commit bc3129e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎client/src/components/FullScreenGame/FullScreenGame.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const FullscreenGame = () => {
9999
className="fullscreen-mode"
100100
style={{
101101
width: '100vw',
102-
height: '100vh',
102+
height: '100dvh',
103103
margin: 0,
104104
padding: 0,
105105
boxSizing: 'border-box'

‎client/src/components/SkyJumpMiniGame/main.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
.skyjump-game-container {
3333
position: relative;
3434
width: 100%;
35-
height: 100vh;
35+
height: 100dvh;
3636
display: flex;
3737
justify-content: center;
3838
align-items: center;
@@ -164,7 +164,7 @@
164164
top: 0;
165165
left: 0;
166166
width: 100vw;
167-
height: 100vh;
167+
height: 100dvh;
168168
background-color: rgba(0, 0, 0, 0.7);
169169
z-index: 9999;
170170
display: flex;

0 commit comments

Comments
 (0)