Feature: Ajout en-têtes pour todos et fichiers dans les notes

Ajout d'en-têtes descriptifs dans les notes:
- "todo list:" au-dessus de la section des checkboxes (todos)
- "Fichiers divers : Fichier(s)" au-dessus de la section des fichiers joints

Améliore la lisibilité et l'organisation visuelle des notes contenant des todos et des fichiers.
This commit is contained in:
Claude committed 2025-11-12 16:40:01 +00:00
1 parent da548f7bc0
commit 826a4fa999
1 file changed
+24 -16
+24 -16
View File
@@ -1132,10 +1132,12 @@ const Index = () => {
{/* Todos */}
{openNote.todos && openNote.todos.length > 0 && (
<Card>
<CardContent className="p-4">
<div className="space-y-2">
{openNote.todos.map((todo, index) => (
<>
<div className="text-sm font-medium text-muted-foreground mb-2">todo list:</div>
<Card>
<CardContent className="p-4">
<div className="space-y-2">
{openNote.todos.map((todo, index) => (
<div key={index} className="flex items-center gap-3 p-2 border rounded">
<Checkbox
checked={todo.completed}
@@ -1161,10 +1163,11 @@ const Index = () => {
<Trash2 className="h-3 w-3" />
</Button>
</div>
))}
</div>
</CardContent>
</Card>
))}
</div>
</CardContent>
</Card>
</>
)}
{/* Images in thumbnails */}
@@ -1206,10 +1209,14 @@ const Index = () => {
{/* Files */}
{openNote.files && openNote.files.length > 0 && (
<Card>
<CardContent className="p-4">
<div className="space-y-2">
{openNote.files.map((file: any, index: number) => (
<>
<div className="text-sm font-medium text-muted-foreground mb-2">
Fichiers divers : Fichier(s)
</div>
<Card>
<CardContent className="p-4">
<div className="space-y-2">
{openNote.files.map((file: any, index: number) => (
<div key={index} className="flex items-center gap-3 p-2 border rounded group">
<Paperclip className="h-4 w-4 text-muted-foreground" />
<div className="flex-1 min-w-0">
@@ -1258,10 +1265,11 @@ const Index = () => {
</Button>
</div>
</div>
))}
</div>
</CardContent>
</Card>
))}
</div>
</CardContent>
</Card>
</>
)}
{/* Rich text editor */}