Spaces:
Paused
Paused
Just WOrkkkkkk
Browse files- app.css +1 -1
- static/js/landing.js +10 -0
app.css
CHANGED
|
@@ -19,7 +19,7 @@ html, body {
|
|
| 19 |
}
|
| 20 |
|
| 21 |
#main-row {
|
| 22 |
-
height:
|
| 23 |
max-height: 100%;
|
| 24 |
}
|
| 25 |
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
#main-row {
|
| 22 |
+
height: calc(var(--vh) * 100);
|
| 23 |
max-height: 100%;
|
| 24 |
}
|
| 25 |
|
static/js/landing.js
CHANGED
|
@@ -71,4 +71,14 @@
|
|
| 71 |
// Store reference for cleanup
|
| 72 |
window._landingPageObserver = observer;
|
| 73 |
window._landingPage = landingPage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
}
|
|
|
|
| 71 |
// Store reference for cleanup
|
| 72 |
window._landingPageObserver = observer;
|
| 73 |
window._landingPage = landingPage;
|
| 74 |
+
|
| 75 |
+
function setVH() {
|
| 76 |
+
document.documentElement.style.setProperty(
|
| 77 |
+
'--vh',
|
| 78 |
+
`${window.innerHeight * 0.01}px`
|
| 79 |
+
);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
setVH();
|
| 83 |
+
window.addEventListener('resize', setVH);
|
| 84 |
}
|