mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-14 20:37:06 +02:00
web/SidebarTab: apply will-change only on iphone
This commit is contained in:
parent
459c746dcc
commit
1160b90c17
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user