diff --git a/src/lib/components/BookmarksSection.svelte b/src/lib/components/BookmarksSection.svelte index 2fb18a7..4a6d74e 100644 --- a/src/lib/components/BookmarksSection.svelte +++ b/src/lib/components/BookmarksSection.svelte @@ -1,99 +1,79 @@ -
+ { + if (e.key === STORAGE_KEY) loadSaved(); + }} +/> + +{#snippet linkBody(item: PinnedLink)} + + +
+ + {item.name} + + + {item.url.replace(/^https?:\/\//, '')} + +
+
+{/snippet} + +
- - ⭐ +

+ Pinned & Quick Links - - - {bookmarks.length} +

+ + {links.length + bookmarks.length}
- {#if bookmarks.length === 0} -
- No pinned links yet. Click + Add Link to pin frequent bookmarks to your homelab portal. + {#if links.length + bookmarks.length === 0} +
+ No pinned links yet. Click + Add Link to pin frequent bookmarks to your homelab portal.
{:else}
+ {#each links as link (link.id)} +
+ {@render linkBody(link)} +
+ {/each} {#each bookmarks as bm (bm.id)} -
- - {bm.icon} -
- - {bm.name} - - - {bm.url.replace(/^https?:\/\//, '')} - -
-
+
+ {@render linkBody(bm)}
{/if} -
+
- {#if showAddModal} -