Skip to content

Commit

Permalink
fix: docs nav
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 7, 2021
1 parent d9127b9 commit 9d1e8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const currentMic = useStorage<string>('slidev-mic', 'default')
export const slideScale = useStorage<number>('slidev-scale', null)

export const showEditor = useStorage('slidev-show-editor', false)
export const editorWidth = useStorage('slidev-editor-width', window.innerWidth * 0.4)
export const editorWidth = useStorage('slidev-editor-width', isClient ? window.innerWidth * 0.4 : 100)

export const isPrintMode = computed(() => query.print != null)

Expand Down

0 comments on commit 9d1e8da

Please sign in to comment.