mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/SidebarTab: apply will-change only on iphone
This commit is contained in:
parent
459c746dcc
commit
1160b90c17
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue