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 93b7d6a commit 6915125Copy full SHA for 6915125
1 file changed
src/App.vue
@@ -121,6 +121,12 @@ const refreshPreview = () => {
121
}
122
123
watch(autoSave, setAutoSaveState)
124
+
125
+const setVH = () => {
126
+ document.documentElement.style.setProperty('--vh', `${window.innerHeight}px`)
127
+}
128
+useEventListener('resize', setVH)
129
+setVH()
130
</script>
131
132
<template>
@@ -139,6 +145,7 @@ watch(autoSave, setAutoSaveState)
139
145
:store="store"
140
146
:editor="Monaco"
141
147
:preview-options="previewOptions"
148
+ auto-resize
142
149
@keydown="handleKeydown"
143
150
/>
144
151
<Teleport defer to=".vue-repl .right">
@@ -166,7 +173,7 @@ body {
166
173
167
174
168
175
.vue-repl {
169
- height: calc(100vh - var(--nav-height)) !important;
176
+ height: calc(var(--vh) - var(--nav-height)) !important;
170
177
171
178
172
179
.vue-repl .right {
0 commit comments