fix: zen mode on refresh
This commit is contained in:
parent
680b3493b3
commit
bef1371516
5 changed files with 18 additions and 14 deletions
|
@ -1,10 +0,0 @@
|
|||
import { fontSizeMap } from '~/constants/options'
|
||||
import { DEFAULT_FONT_SIZE } from '~/constants'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
const userSettings = useUserSettings()
|
||||
const html = document.querySelector('html')!
|
||||
watchEffect(() => {
|
||||
html.style.setProperty('--font-size', fontSizeMap[userSettings.value.fontSize || DEFAULT_FONT_SIZE])
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue