mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-15 18:49:21 +00:00
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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]);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user