web/SidebarTab: apply will-change only on iphone

This commit is contained in:
wukko 2024-07-12 17:16:26 +06:00
parent 459c746dcc
commit 1160b90c17
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -61,7 +61,6 @@
opacity: 0.8; opacity: 0.8;
height: fit-content; height: fit-content;
border-radius: var(--border-radius); border-radius: var(--border-radius);
will-change: transform;
transition: transform 0.2s; transition: transform 0.2s;
} }
@ -71,6 +70,10 @@
width: 21px; width: 21px;
} }
:global(.on-iPhone .sidebar-tab svg) {
will-change: transform;
}
.sidebar-tab.active { .sidebar-tab.active {
color: var(--sidebar-bg); color: var(--sidebar-bg);
background: var(--sidebar-highlight); background: var(--sidebar-highlight);