Skip to content

best way to save what you love

web/SidebarTab: fix double scale on press, hold, release

wukkoa7b61dd24cc7
diff --git a/web/src/components/sidebar/SidebarTab.svelte b/web/src/components/sidebar/SidebarTab.svelte
index b7866fba..73360005 100644
--- a/web/src/components/sidebar/SidebarTab.svelte
+++ b/web/src/components/sidebar/SidebarTab.svelte
@@ -67,6 +67,8 @@
text-decoration-line: none;
position: relative;
scroll-behavior: smooth;
+
+ cursor: pointer;
}
.sidebar-tab :global(svg) {
@@ -84,10 +86,12 @@
background: var(--sidebar-highlight);
opacity: 1;
transform: none;
+ transition: none;
animation: pressButton 0.3s;
+ cursor: default;
}
- .sidebar-tab:active {
+ .sidebar-tab:not(.active):active {
transform: scale(0.95);
}