ui(tiptap): wider focus for content editor

closes #165
zio/stable
三咲智子 2022-11-28 15:39:45 +08:00
parent fe875dc50f
commit 7f7eccdd07
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
2 changed files with 2 additions and 1 deletions

View File

@ -181,6 +181,7 @@ onUnmounted(() => {
<div relative> <div relative>
<EditorContent <EditorContent
:editor="editor" :editor="editor"
flex
:class="isExpanded ? 'min-h-120px max-h-720px of-y-auto' : ''" :class="isExpanded ? 'min-h-120px max-h-720px of-y-auto' : ''"
/> />
<div v-if="isExpanded" absolute right-0 bottom-0 pointer-events-none text-sm text-secondary-light> <div v-if="isExpanded" absolute right-0 bottom-0 pointer-events-none text-sm text-secondary-light>

View File

@ -78,7 +78,7 @@ html {
} }
.content-editor { .content-editor {
--at-apply: outline-none; --at-apply: 'outline-none flex-1';
pre { pre {
--at-apply: font-mono bg-code rounded px3 py2; --at-apply: font-mono bg-code rounded px3 py2;