mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-06 07:20:25 +00:00
@@ -13,7 +13,8 @@
|
||||
</script>
|
||||
</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>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -158,7 +158,7 @@ body {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
/* We use this to not render the page at all until we know the theme.*/
|
||||
.nodisplay {
|
||||
.no-theme {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@ export const useTheme = (): void => {
|
||||
document.body.classList.add(themeString);
|
||||
previousTheme.current = themeString;
|
||||
}
|
||||
document.body.classList.remove("nodisplay");
|
||||
document.body.classList.remove("no-theme");
|
||||
}, [previousTheme, themeName]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user