fix: font not applying in portals
This commit is contained in:
1 parent
7c74762c2a
commit
22c8f9d6f0
1 file changed
+19
-7
@@ -65,6 +65,24 @@
|
|||||||
themeVars.subscribe((vars) => {
|
themeVars.subscribe((vars) => {
|
||||||
document.body.setAttribute('style', vars)
|
document.body.setAttribute('style', vars)
|
||||||
})
|
})
|
||||||
|
userSettings.subscribe((settings) => {
|
||||||
|
document.body.classList.remove(
|
||||||
|
'font-display',
|
||||||
|
'font-inter',
|
||||||
|
'font-sans',
|
||||||
|
'font-system',
|
||||||
|
'font-nunito'
|
||||||
|
)
|
||||||
|
document.body.classList.add(
|
||||||
|
settings.font == 'inter'
|
||||||
|
? 'font-inter'
|
||||||
|
: $userSettings.font == 'system'
|
||||||
|
? 'font-system'
|
||||||
|
: $userSettings.font == 'satoshi/nunito'
|
||||||
|
? 'font-nunito'
|
||||||
|
: 'font-sans'
|
||||||
|
)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$: title = routes[($page.route.id as keyof typeof routes) ?? '']
|
$: title = routes[($page.route.id as keyof typeof routes) ?? '']
|
||||||
@@ -100,13 +118,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Shell
|
<Shell
|
||||||
dir={$locale == 'he' && $userSettings.useRtl ? 'rtl' : 'ltr'}
|
dir={$locale == 'he' && $userSettings.useRtl ? 'rtl' : 'ltr'}
|
||||||
class="min-h-screen {$userSettings.font == 'inter'
|
class="min-h-screen "
|
||||||
? 'font-inter'
|
|
||||||
: $userSettings.font == 'system'
|
|
||||||
? 'font-system'
|
|
||||||
: $userSettings.font == 'satoshi/nunito'
|
|
||||||
? 'font-nunito'
|
|
||||||
: 'font-sans'}"
|
|
||||||
route={$page.route}
|
route={$page.route}
|
||||||
>
|
>
|
||||||
<Moderation />
|
<Moderation />
|
||||||
|
|||||||
Reference in new issue
Block a user