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' ? ( + ) : (