Fix viewport height on mobile browsers
This commit is contained in:
1 parent
7c78d35aaa
commit
314a3b455c
1 file changed
+2
-1
+2
-1
@@ -20,7 +20,8 @@
|
||||
#canvas {
|
||||
/* Force Slint to occupy the entire viewport */
|
||||
width: 100vw !important;
|
||||
height: 100vh !important;
|
||||
height: 100vh !important; /* if browser doesn't support dvh */
|
||||
height: 100dvh !important;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user