fix: textarea 60vh, white header, sidebar corbeille+footer alignment, orphan var removed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user