diff --git a/src/app/notes/NotesPageClient.tsx b/src/app/notes/NotesPageClient.tsx index 74ff304..68dacbc 100644 --- a/src/app/notes/NotesPageClient.tsx +++ b/src/app/notes/NotesPageClient.tsx @@ -6,6 +6,7 @@ import { notesClient } from '@/clients/notes'; import { NotesList } from '@/components/notes/NotesList'; import { MarkdownEditor } from '@/components/notes/MarkdownEditor'; import { Header } from '@/components/ui/Header'; +import { Card } from '@/components/ui'; import { TasksProvider, useTasksContext } from '@/contexts/TasksContext'; import { Tag } from '@/lib/types'; import { FileText, AlertCircle, ChevronLeft, ChevronRight } from 'lucide-react'; @@ -22,6 +23,9 @@ function NotesPageContent({ initialNotes }: { initialNotes: Note[] }) { const [error, setError] = useState(null); const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false); const [sidebarCollapsed, setSidebarCollapsed] = useState(false); + const glassSurface = + 'bg-[var(--card)]/40 backdrop-blur-md relative before:absolute before:inset-0 before:bg-gradient-to-r before:from-[color-mix(in_srgb,var(--primary)_8%,transparent)] before:via-[color-mix(in_srgb,var(--primary)_4%,transparent)] before:to-transparent before:opacity-80 before:pointer-events-none'; + const glassDivider = `${glassSurface} border-b border-[var(--border)]/60`; // Select first note if none selected useEffect(() => { @@ -152,11 +156,14 @@ function NotesPageContent({ initialNotes }: { initialNotes: Note[] }) { }, [selectedNote, hasUnsavedChanges, handleSave]); return ( -
+
-
-
+
+ {/* Notes List Sidebar */}
) : ( <> -
+

Notes

@@ -217,7 +226,7 @@ function NotesPageContent({ initialNotes }: { initialNotes: Note[] }) { {selectedNote ? ( <> {/* Note Header */} -
+

@@ -271,7 +280,7 @@ function NotesPageContent({ initialNotes }: { initialNotes: Note[] }) {

)}
-
+
); diff --git a/src/components/notes/MarkdownEditor.tsx b/src/components/notes/MarkdownEditor.tsx index 40c392f..057b065 100644 --- a/src/components/notes/MarkdownEditor.tsx +++ b/src/components/notes/MarkdownEditor.tsx @@ -345,6 +345,7 @@ export function MarkdownEditor({ onChange={onTagsChange} placeholder="Ajouter des tags..." maxTags={10} + compactSuggestions={true} />
diff --git a/src/components/ui/TagInput.tsx b/src/components/ui/TagInput.tsx index 4017296..4d4d56b 100644 --- a/src/components/ui/TagInput.tsx +++ b/src/components/ui/TagInput.tsx @@ -268,52 +268,57 @@ export function TagInput({ createPortal(
- {loading ? ( -
- Recherche... -
- ) : ( -
- {suggestions.map((tag, index) => ( - - ))} -
- )} + {tags.includes(tag.name) && ( + + ✓ + + )} + + ))} +
+ )} +
, document.body )}