Skip to content

Commit c718a8c

Browse files
committed
🐛 more bulletproof FOUC prevention
1 parent 2efd425 commit c718a8c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/client/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,17 @@
1010
/>
1111
<title>narf!</title>
1212
<style>
13-
body {
13+
body,
14+
html {
1415
background-color: #eee;
16+
height: 100%;
17+
min-height: 100%;
18+
min-width: 100%;
19+
width: 100%;
1520
}
1621
@media screen and (prefers-color-scheme: dark) {
17-
body {
22+
body,
23+
html {
1824
background-color: #333;
1925
}
2026
}

0 commit comments

Comments
 (0)