rename to no-theme

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2024-03-13 14:47:35 +01:00
parent 60a18be16e
commit 5ed2f0baf4
3 changed files with 4 additions and 3 deletions

View File

@@ -13,7 +13,8 @@
</script> </script>
</head> </head>
<body class="nodisplay"> <!-- The default class is: .no-theme {display: none}. It will be overwritten once the app is loaded. -->
<body class="no-theme">
<div id="root"></div> <div id="root"></div>
</body> </body>
</html> </html>

View File

@@ -158,7 +158,7 @@ body {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
/* We use this to not render the page at all until we know the theme.*/ /* We use this to not render the page at all until we know the theme.*/
.nodisplay { .no-theme {
opacity: 0; opacity: 0;
} }

View File

@@ -36,6 +36,6 @@ export const useTheme = (): void => {
document.body.classList.add(themeString); document.body.classList.add(themeString);
previousTheme.current = themeString; previousTheme.current = themeString;
} }
document.body.classList.remove("nodisplay"); document.body.classList.remove("no-theme");
}, [previousTheme, themeName]); }, [previousTheme, themeName]);
}; };