From 7bc63158bfec1397c1ef5de732b279a9d0bf3ff1 Mon Sep 17 00:00:00 2001 From: Antigravity Date: Thu, 7 May 2026 22:43:09 +0000 Subject: [PATCH] fix: textarea 60vh, white header, sidebar corbeille+footer alignment, orphan var removed --- memento-note/components/home-client.tsx | 2 +- memento-note/components/note-editor.tsx | 4 ++-- memento-note/components/sidebar.tsx | 23 +++++++++++++++++------ 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/memento-note/components/home-client.tsx b/memento-note/components/home-client.tsx index 0e18697..bf03434 100644 --- a/memento-note/components/home-client.tsx +++ b/memento-note/components/home-client.tsx @@ -361,7 +361,7 @@ export function HomeClient({ initialNotes, initialSettings }: HomeClientProps) { <>

diff --git a/memento-note/components/note-editor.tsx b/memento-note/components/note-editor.tsx index 2164c3d..13cf021 100644 --- a/memento-note/components/note-editor.tsx +++ b/memento-note/components/note-editor.tsx @@ -661,7 +661,7 @@ export function NoteEditor({ note, readOnly = false, onClose, fullPage = false } // ── fullPage mode: editorial layout (fidèle au prototype) ── if (fullPage) { const notebookName = notebooks.find(nb => nb.id === note.notebookId)?.name || null - const plainFirstSentence = content.replace(/<[^>]+>/g, ' ').replace(/\s+/g, ' ').trim().split(/[.!?]/)[0] + return ( <> @@ -841,7 +841,7 @@ export function NoteEditor({ note, readOnly = false, onClose, fullPage = false } onFocus={() => setShowMarkdownPreview(false)} onChange={(e) => { setContent(e.target.value); setIsDirty(true) }} disabled={readOnly} - className="w-full min-h-[400px] border-0 outline-none px-0 bg-transparent text-lg leading-relaxed font-light resize-none placeholder:text-foreground/20 text-foreground/80" + className="w-full min-h-[60vh] border-0 outline-none px-0 bg-transparent text-lg leading-relaxed font-light resize-none placeholder:text-foreground/20 text-foreground/80" /> {noteType === 'markdown' && content && !readOnly && (