From 3fd6aef52c5cc0b615b4312e2591d42dfda45dea Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Wed, 9 Oct 2024 13:59:33 -0400 Subject: [PATCH] style: change icon and code styles --- src/components/Divider.tsx | 2 +- src/components/MarkDownEditor/md.css | 2 +- src/components/NoteCard.tsx | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/Divider.tsx b/src/components/Divider.tsx index 09e3595..21fda77 100644 --- a/src/components/Divider.tsx +++ b/src/components/Divider.tsx @@ -1,6 +1,6 @@ export function Divider() { return ( -
+
) } diff --git a/src/components/MarkDownEditor/md.css b/src/components/MarkDownEditor/md.css index 4038560..663594d 100644 --- a/src/components/MarkDownEditor/md.css +++ b/src/components/MarkDownEditor/md.css @@ -31,7 +31,7 @@ } .TMCode { - @apply text-blue-800 px-1; + @apply text-blue-800 px-1 dark:bg-[#ffffff26] dark:text-blue-200 dark:border-[#545454]; } .TMBlockquote { diff --git a/src/components/NoteCard.tsx b/src/components/NoteCard.tsx index e370823..590e8ad 100644 --- a/src/components/NoteCard.tsx +++ b/src/components/NoteCard.tsx @@ -109,7 +109,7 @@ export function NoteCard({ key: itemKey, data: item }: NoteCard.NoteCardProps) { focusedItem.value = itemKey } - function _handleExportClick(e) { + function _handleExportClick(_e: MouseEvent) { createFileAndExport("Note", item.contents, "text/markdown") } @@ -132,6 +132,7 @@ export function NoteCard({ key: itemKey, data: item }: NoteCard.NoteCardProps) { className="overflow-hidden text-[#333] dark:bg-[#1a1a1a] dark:border-[#1c1c1c] bg-[#eee] select-none transition flex flex-col justify-stretch shadow-md rounded border border-[#ddd] absolute" >
+ {/* Header Bar */}
@@ -140,17 +141,20 @@ export function NoteCard({ key: itemKey, data: item }: NoteCard.NoteCardProps) { onclick={_handleExportClick} className="flex items-center">
+ +
-
+
+ {/* Content Body */}