Define vh CSS variable from viewport height
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
top: 80px;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: calc(100vh - 80px);
|
||||
height: calc(var(--vh) - 80px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
@@ -16,7 +16,7 @@
|
||||
top: 24px;
|
||||
right: 24px;
|
||||
width: clamp(320px, 45vw, 500px);
|
||||
height: calc(100vh - 48px);
|
||||
height: calc(var(--vh) - 48px);
|
||||
max-height: 1000px;
|
||||
border-radius: 8px;
|
||||
padding: 24px 32px 32px;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
:global(.photo-page) {
|
||||
position: relative;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
height: var(--vh);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user