From 56081db857c67fc8ca1aaf345904454413ffd6c1 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 24 Jun 2024 23:46:37 +0600 Subject: [PATCH] web: move svg icon params to css & clean up --- web/src/components/save/Omnibox.svelte | 9 +++++- .../components/settings/SettingsTab.svelte | 31 ++++++++++++------- web/src/components/sidebar/Sidebar.svelte | 21 ++++++------- web/src/components/sidebar/SidebarTab.svelte | 6 ++++ web/src/routes/settings/+layout.svelte | 28 +++++++---------- 5 files changed, 55 insertions(+), 40 deletions(-) diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index 178af9dc..87682876 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -41,7 +41,7 @@ class:focused={isFocused} class:downloadable={validLink(link)} > - + import { page } from "$app/stores"; - export let categoryName: string; - export let categoryLink: string; + export let tabName: string; + export let tabLink: string; export let iconColor: "gray" | "blue" | "green" = "gray"; - $: isActive = $page.url.pathname === `/settings/${categoryLink}`; + $: isActive = $page.url.pathname === `/settings/${tabLink}`; -
+
- {categoryName} + {tabName}