From 1160b90c172f43b5945709d424d2c5be59b723fa Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 12 Jul 2024 17:16:26 +0600 Subject: [PATCH] web/SidebarTab: apply will-change only on iphone --- web/src/components/sidebar/SidebarTab.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);