Define vh CSS variable from viewport height

This commit is contained in:
2022-08-29 14:21:06 +02:00
parent 5ed7142e9e
commit f0a7e9f38d
3 changed files with 8 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
:global(.photo-page) {
position: relative;
width: 100vw;
height: 100vh;
height: var(--vh);
display: flex;
align-items: center;
overflow: hidden;