Skip to content

Commit 1b16006

Browse files
committed
fix: prevent indefinite editor resizing
1 parent 4f3f078 commit 1b16006

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

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

128128
<template>
129-
<div class="relative h-full">
130-
<AlertMDCFormatting v-if="isAutomaticFormattingDetected" />
131-
<div
132-
ref="editorRef"
133-
class="h-full -ml-3"
134-
/>
129+
<div class="relative h-full flex flex-col">
130+
<AlertMDCFormatting class="flex-none" v-if="isAutomaticFormattingDetected" />
131+
<div ref="editorRef" class="flex-1" />
135132
</div>
136133
</template>

0 commit comments

Comments
 (0)