minimize lazyout shift on switchers

i18n
mrshmllow 2 years ago committed by Michal
parent 131bfab3ea
commit b7a2a7191c
No known key found for this signature in database
GPG Key ID: 52F8801FC912EB4F

@ -18,7 +18,7 @@ const IconLocaleSwitcher = () => {
}, []);
if (!mounted) {
return null;
return <span className="w-[21.88px] p-2.5" />;
}
const changeLocale = (locale: string) => {

@ -15,7 +15,7 @@ const IconThemeSwitcher = () => {
}, []);
if (!mounted) {
return null;
return <span className="w-[21.88px] p-2.5" />;
}
const changeTheme = (theme: string) => {
@ -46,6 +46,7 @@ const IconThemeSwitcher = () => {
<FontAwesomeIcon
size="lg"
icon={resolvedTheme === "light" ? faSun : faMoon}
fixedWidth
/>
</button>
<div

Loading…
Cancel
Save