We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f645e commit c9fc434Copy full SHA for c9fc434
Public/css/common.css
@@ -1,5 +1,6 @@
1
body {
2
height: 100vh;
3
+ height: 100svh;
4
}
5
6
.swift-logo {
Public/js/app.js
@@ -19,7 +19,8 @@ export class App {
19
get contentViewHeight() {
20
const headerHeight = document.querySelector("header").clientHeight;
21
const footerHeight = document.querySelector("footer").clientHeight;
22
- return `calc(100vh - ${headerHeight}px - ${footerHeight}px)`;
+ const viewport = CSS.supports("height", "100svh") ? "100svh" : "100vh";
23
+ return `calc(${viewport} - ${headerHeight}px - ${footerHeight}px)`;
24
25
26
constructor() {
0 commit comments