From c5f4d5df75110368675c64b9f8fe7fbce25bf329 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Fri, 13 Dec 2024 09:37:40 -0800 Subject: [PATCH] Visual polish --- src/components/note-preview.tsx | 24 ++++++------------------ src/routes/notes_.$.tsx | 4 ++-- src/styles/index.css | 4 ++-- src/styles/variables.css | 6 ++++-- tailwind.config.cjs | 1 + 5 files changed, 15 insertions(+), 24 deletions(-) diff --git a/src/components/note-preview.tsx b/src/components/note-preview.tsx index 42a1f0de..797b82b0 100644 --- a/src/components/note-preview.tsx +++ b/src/components/note-preview.tsx @@ -16,23 +16,11 @@ export function NotePreview({ note }: { note: Note }) { className="flex aspect-[5/3] w-full flex-col gap-1.5 overflow-hidden p-3 [contain:layout_paint]" > {(note.type === "daily" || note.type === "weekly") && !note.title ? ( -
-
- {note.type === "daily" ? ( - - ) : ( - - )} -
-
- {note.displayName} - - {note.type === "daily" ? formatDateDistance(note.id) : formatWeekDistance(note.id)} - -
+
+ {note.displayName} + + {note.type === "daily" ? formatDateDistance(note.id) : formatWeekDistance(note.id)} +
) : null}
@@ -40,7 +28,7 @@ export function NotePreview({ note }: { note: Note }) { {note.content}
-
+
{note.tags.slice(0, NUM_VISIBLE_TAGS).map((tag) => (
{(!note && editorValue) || isDirty ? ( -
+
) : null} -
+