mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-11 17:29:37 +02:00
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:
1 file changed
+24
-16
+24
-16
@@ -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 */}
|
||||
|
||||
Reference in new issue
Block a user