We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9127b9 commit 9d1e8daCopy full SHA for 9d1e8da
packages/client/state/index.ts
@@ -22,7 +22,7 @@ export const currentMic = useStorage<string>('slidev-mic', 'default')
22
export const slideScale = useStorage<number>('slidev-scale', null)
23
24
export const showEditor = useStorage('slidev-show-editor', false)
25
-export const editorWidth = useStorage('slidev-editor-width', window.innerWidth * 0.4)
+export const editorWidth = useStorage('slidev-editor-width', isClient ? window.innerWidth * 0.4 : 100)
26
27
export const isPrintMode = computed(() => query.print != null)
28
0 commit comments