From 12c4a7a3f7f4168802297f305fa1e49efae22a5a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 12 Jul 2025 03:15:31 +0400 Subject: [PATCH] refac: styling --- src/lib/components/notes/NoteEditor.svelte | 66 +++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/lib/components/notes/NoteEditor.svelte b/src/lib/components/notes/NoteEditor.svelte index 6d9cb1b8e2..b28a7b36bf 100644 --- a/src/lib/components/notes/NoteEditor.svelte +++ b/src/lib/components/notes/NoteEditor.svelte @@ -810,39 +810,6 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings, {/if} - { - downloadHandler(type); - }} - onCopyLink={async () => { - const baseUrl = window.location.origin; - const res = await copyToClipboard(`${baseUrl}/notes/${note.id}`); - - if (res) { - toast.success($i18n.t('Copied link to clipboard')); - } else { - toast.error($i18n.t('Failed to copy link')); - } - }} - onCopyToClipboard={async () => { - const res = await copyToClipboard(note.data.content.md).catch((error) => { - toast.error(`${error}`); - return null; - }); - - if (res) { - toast.success($i18n.t('Copied to clipboard')); - } - }} - onDelete={() => { - showDeleteConfirm = true; - }} - > -
- -
-
- + + { + downloadHandler(type); + }} + onCopyLink={async () => { + const baseUrl = window.location.origin; + const res = await copyToClipboard(`${baseUrl}/notes/${note.id}`); + + if (res) { + toast.success($i18n.t('Copied link to clipboard')); + } else { + toast.error($i18n.t('Failed to copy link')); + } + }} + onCopyToClipboard={async () => { + const res = await copyToClipboard(note.data.content.md).catch((error) => { + toast.error(`${error}`); + return null; + }); + + if (res) { + toast.success($i18n.t('Copied to clipboard')); + } + }} + onDelete={() => { + showDeleteConfirm = true; + }} + > +
+ +
+