Skip to content

Commit

Permalink
fix: Replace vh/vw with dvh/dvw for improved viewport handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cussle committed Nov 15, 2024
1 parent b7cb785 commit 1fdfe4a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/static/css/card/card-detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
width: 100dvw;
height: 100dvh;
background-color: rgba(0, 0, 0, 0.3);
z-index: 1000; /* 배경이 페이지 전체를 덮도록 설정 */
display: none; /* 기본적으로 숨김 */
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/css/chat/room.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.container {
height: 100vh;
height: 100dvh;
overflow: hidden;
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
height: 100dvh;
background-color: var(--background);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/css/oauth/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
height: 100dvh;
background-color: var(--background);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
height: 100dvh;
background-color: #f5f5f5;
}

Expand Down

0 comments on commit 1fdfe4a

Please sign in to comment.