diff --git a/memento-note/components/note-editor.tsx b/memento-note/components/note-editor.tsx
index 8475e46..2164c3d 100644
--- a/memento-note/components/note-editor.tsx
+++ b/memento-note/components/note-editor.tsx
@@ -25,7 +25,7 @@ import {
} from '@/components/ui/dropdown-menu'
import { NoteTypeSelector } from '@/components/note-type-selector'
import { RichTextEditor } from '@/components/rich-text-editor'
-import { X, Plus, Palette, Image as ImageIcon, Bell, Eye, Link as LinkIcon, Sparkles, Maximize2, Copy, Wand2, LogOut, ArrowLeft, Info, Check, Loader2 } from 'lucide-react'
+import { X, Plus, Palette, Image as ImageIcon, Bell, Eye, Link as LinkIcon, Sparkles, Maximize2, Copy, Wand2, LogOut, ArrowLeft, ChevronRight, Info, Check, Loader2 } from 'lucide-react'
import { updateNote, createNote, cleanupOrphanedImages, leaveSharedNote } from '@/app/actions/notes'
import { format } from 'date-fns'
import { useTitleSuggestions } from '@/hooks/use-title-suggestions'
@@ -658,187 +658,257 @@ export function NoteEditor({ note, readOnly = false, onClose, fullPage = false }
}
}
- // ── fullPage mode: early return with editorial layout ──
+ // ── 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 (
<>
-
-
- {/* main scrollable column */}
-
+ {/* ── outer container: white like prototype ── */}
+
- {/* sticky toolbar — matches prototype */}
-
-
+ )}
-
+
+
+
>
)
}