Skip to content

Commit 9d15fc2

Browse files
committedOct 25, 2024·
fix: Vite error overlay style when side editor is not open
1 parent 5ef7b7a commit 9d15fc2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎packages/client/pages/play.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ if (__SLIDEV_FEATURE_WAKE_LOCK__)
3838
useWakeLock()
3939
4040
if (import.meta.hot) {
41-
useStyleTag(computed(() => `
41+
useStyleTag(computed(() => showEditor.value
42+
? `
4243
vite-error-overlay {
4344
--width: calc(100vw - ${isEditorVertical.value ? 0 : editorWidth.value}px);
4445
--height: calc(100vh - ${isEditorVertical.value ? editorHeight.value : 0}px);
@@ -49,7 +50,8 @@ if (import.meta.hot) {
4950
height: calc(var(--height) / var(--slidev-slide-scale));
5051
transform-origin: top left;
5152
transform: scale(var(--slidev-slide-scale));
52-
}`,
53+
}`
54+
: '',
5355
))
5456
}
5557

0 commit comments

Comments
 (0)
Please sign in to comment.