From 69df314db77ce5b981a218073064cf3954a70437 Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Mon, 16 Mar 2026 01:14:33 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20aprimora=20a=20edi=C3=A7=C3=A3o=20e=20v?= =?UTF-8?q?isualiza=C3=A7=C3=A3o=20de=20anota=C3=A7=C3=B5es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/notes/note-list-item.tsx | 6 +- src/features/notes/actions.ts | 2 +- src/features/notes/components/note-card.tsx | 41 +++--- .../notes/components/note-details-dialog.tsx | 23 +++- src/features/notes/components/note-dialog.tsx | 125 ++++++++++-------- src/features/notes/components/notes-page.tsx | 21 +-- 6 files changed, 123 insertions(+), 95 deletions(-) diff --git a/src/features/dashboard/components/notes/note-list-item.tsx b/src/features/dashboard/components/notes/note-list-item.tsx index 407769d..af9e6a7 100644 --- a/src/features/dashboard/components/notes/note-list-item.tsx +++ b/src/features/dashboard/components/notes/note-list-item.tsx @@ -23,7 +23,7 @@ export function NoteListItem({ const createdAtLabel = formatNoteCreatedAt(note.createdAt); return ( -
+

{displayTitle} @@ -44,7 +44,7 @@ export function NoteListItem({ + )} + +

)}
- +
+ + MAX_TITLE + ? "text-destructive" + : "text-muted-foreground", + )} + > + {titleCount}/{MAX_TITLE} + +
@@ -287,7 +303,19 @@ export function NoteDialog({ {isNote && (
- +
+ + MAX_DESC + ? "text-destructive" + : "text-muted-foreground", + )} + > + {descCount}/{MAX_DESC} + +