Skip to content

best way to save what you love

web/SidebarTab: apply will-change only on iphone

wukko1160b90c172f
diff --git a/web/src/components/sidebar/SidebarTab.svelte b/web/src/components/sidebar/SidebarTab.svelte
index fbba8af6..769acfa3 100644
--- a/web/src/components/sidebar/SidebarTab.svelte
+++ b/web/src/components/sidebar/SidebarTab.svelte
@@ -61,7 +61,6 @@
opacity: 0.8;
height: fit-content;
border-radius: var(--border-radius);
- will-change: transform;
transition: transform 0.2s;
}
@@ -71,6 +70,10 @@
width: 21px;
}
+ :global(.on-iPhone .sidebar-tab svg) {
+ will-change: transform;
+ }
+
.sidebar-tab.active {
color: var(--sidebar-bg);
background: var(--sidebar-highlight);