carnet uix layout

This commit is contained in:
alma 2025-04-20 15:38:17 +02:00
parent b5ef10a3db
commit 6aca9ea88c

View File

@ -167,8 +167,23 @@ export default function CarnetPage() {
{/* Add your folder content here */}
</div>
) : (
<div className="flex items-center justify-center h-full">
<p className="text-carnet-text-muted">Select a folder to view its contents</p>
<div className="flex h-full">
{showNotes && (
<>
<div style={{ width: notesWidth }}>
<NotesView onNoteSelect={handleNoteSelect} />
</div>
<PanelResizer
isDragging={isDraggingNotes}
onDragStart={() => setIsDraggingNotes(true)}
onDragEnd={() => setIsDraggingNotes(false)}
onDrag={handleNotesResize}
/>
</>
)}
<div className="flex-1">
<Editor note={selectedNote} onSave={handleNoteSave} />
</div>
</div>
)}
</div>