Skip to content

Commit

Permalink
fix: Vite error overlay style when side editor is not open
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Oct 25, 2024
1 parent 5ef7b7a commit 9d15fc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/client/pages/play.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ if (__SLIDEV_FEATURE_WAKE_LOCK__)
useWakeLock()
if (import.meta.hot) {
useStyleTag(computed(() => `
useStyleTag(computed(() => showEditor.value
? `
vite-error-overlay {
--width: calc(100vw - ${isEditorVertical.value ? 0 : editorWidth.value}px);
--height: calc(100vh - ${isEditorVertical.value ? editorHeight.value : 0}px);
Expand All @@ -49,7 +50,8 @@ if (import.meta.hot) {
height: calc(var(--height) / var(--slidev-slide-scale));
transform-origin: top left;
transform: scale(var(--slidev-slide-scale));
}`,
}`
: '',
))
}
Expand Down

0 comments on commit 9d15fc2

Please sign in to comment.