diff --git a/.vscode/settings.json b/.vscode/settings.json
index be68164..757a147 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -4,12 +4,16 @@
"eslint.validate": ["javascript", "svelte"],
"cSpell.words": [
"cssnano",
+ "dndzone",
"esac",
"fontpath",
"fontsource",
+ "heroicon",
"htmlnano",
"Iosevka",
+ "janrito",
"lightningcss",
+ "newtab",
"parens",
"pcss",
"quipu",
diff --git a/source/components/Bookmark.svelte b/source/components/Bookmark.svelte
index 2abc86a..a6aaf9f 100644
--- a/source/components/Bookmark.svelte
+++ b/source/components/Bookmark.svelte
@@ -27,14 +27,18 @@ export let favIcon = null;
export let decay = 0;
export let closeEnabled = true;
-let hover = false;
-
const dispatch = createEventDispatcher();
const parsedUrl = new URL(url);
const openBookmark = () => dispatch("open");
const closeBookmark = () => dispatch("close");
const highlightBookmark = () => key && dispatch("highlight", key);
+const darkBackground = decay <= 0.7 ? "bg-blue-500" : decay <= 0.9 ? "bg-orange-500" : "bg-red-500";
+const lightBackground =
+ decay <= 0.7 ? "bg-blue-200" : decay <= 0.9 ? "bg-orange-200" : "bg-red-200";
+const darkForeground =
+ decay <= 0.7 ? "text-blue-400" : decay <= 0.9 ? "text-orange-400" : "text-red-400";
+
$: tagsToDraw = tags
.map(tag => ({
name: tag,
@@ -44,13 +48,11 @@ $: tagsToDraw = tags
- {#if hover && closeEnabled}
-
+ on:click|preventDefault="{openBookmark}">
+ {#if closeEnabled}
+
¶
+ class="block align-top text-sm text-gray-200 group-hover/bookmark:text-blue-800 cursor-pointer"
+ >¶
{/if}
@@ -94,11 +95,23 @@ $: tagsToDraw = tags
{/if}
-
+
-
+
+ {#if decay}
+
+
+
+
Decay: {Math.round(decay * 100)}%
+
+ {/if}
diff --git a/source/components/Settings.svelte b/source/components/Settings.svelte
index 7d39497..a223b61 100644
--- a/source/components/Settings.svelte
+++ b/source/components/Settings.svelte
@@ -29,7 +29,7 @@ const goToTab = event => {
currentTabId = Number(event.detail.id);
};
let allSettingsEditMode = false;
-const enableallSettingsEditMode = () => {
+const enableAllSettingsEditMode = () => {
allSettingsEditMode = true;
};
@@ -102,12 +102,12 @@ $: tabsMatchingLiveExceptions = $browserTabs
{#if currentTab.name === "pinboard"}
-