Skip to content

Commit 48b03b1

Browse files
authored
fix(editor): prevent indefinite editor resizing (#62)
1 parent a2d0a13 commit 48b03b1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/app/src/components/content/ContentEditorCode.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,14 @@ async function setContent(document: DatabasePageItem) {
126126
</script>
127127

128128
<template>
129-
<div class="relative h-full">
130-
<AlertMDCFormatting v-if="isAutomaticFormattingDetected" />
129+
<div class="relative h-full flex flex-col">
130+
<AlertMDCFormatting
131+
v-if="isAutomaticFormattingDetected"
132+
class="flex-none"
133+
/>
131134
<div
132135
ref="editorRef"
133-
class="h-full -ml-3"
136+
class="flex-1"
134137
/>
135138
</div>
136139
</template>

0 commit comments

Comments
 (0)