best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
web/sidebar: highlight the category tab even on subpages
wukkoe305c99b9492
diff --git a/web/src/components/sidebar/SidebarTab.svelte b/web/src/components/sidebar/SidebarTab.svelteindex 36e8db53..bc3578f5 100644--- a/web/src/components/sidebar/SidebarTab.svelte+++ b/web/src/components/sidebar/SidebarTab.svelte@@ -13,7 +13,10 @@let tab: HTMLElement;- $: isTabActive = $page.url.pathname === tabLink;+ $: currentTab = $page.url.pathname.split('/')[1];+ $: baseTabPath = tabLink.split('/')[1]++ $: isTabActive = currentTab === baseTabPath;const showTab = (e: HTMLElement | undefined) => {if (e) {