fix: textarea 60vh, white header, sidebar corbeille+footer alignment, orphan var removed

This commit is contained in:
Antigravity
2026-05-07 22:43:09 +00:00
parent ccbd1b5abc
commit 7bc63158bf
3 changed files with 20 additions and 9 deletions

View File

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