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 && (