ui(tiptap): wider focus for content editor

closes #165
This commit is contained in:
三咲智子 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>
<EditorContent
:editor="editor"
flex
: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>

View file

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