From db899b0da2dff9609f076bdd2112d97031f0745b Mon Sep 17 00:00:00 2001 From: Antigravity Date: Thu, 7 May 2026 22:43:51 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20content=20area=20unified=20branch=20(tex?= =?UTF-8?q?t+markdown=E2=86=92textarea/preview,=20richtext=E2=86=92RTE),?= =?UTF-8?q?=20no=20null=20dead-end?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- memento-note/components/note-editor.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/memento-note/components/note-editor.tsx b/memento-note/components/note-editor.tsx index 13cf021..10aae94 100644 --- a/memento-note/components/note-editor.tsx +++ b/memento-note/components/note-editor.tsx @@ -816,10 +816,10 @@ export function NoteEditor({ note, readOnly = false, onClose, fullPage = false } { setContent(v); setIsDirty(true) }} - className="min-h-[300px] text-lg font-light leading-relaxed text-foreground/80" + className="min-h-[60vh] text-lg font-light leading-relaxed text-foreground/80" onImageUpload={uploadImageFile} /> - ) : noteType === 'markdown' && showMarkdownPreview ? ( + ) : (noteType === 'markdown' || noteType === 'text') && showMarkdownPreview ? (
!readOnly && setShowMarkdownPreview(false)} @@ -831,7 +831,7 @@ export function NoteEditor({ note, readOnly = false, onClose, fullPage = false }

)}
- ) : noteType === 'text' || noteType === 'markdown' ? ( + ) : (