mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-31 08:29:07 +08:00
perf: prevent unnecessary reflow
This commit is contained in:
parent
a7f1387dec
commit
09b64a22c8
@ -213,6 +213,8 @@ const MessageContainer = styled.div`
|
|||||||
.menubar {
|
.menubar {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.2s ease;
|
transition: opacity 0.2s ease;
|
||||||
|
transform: translateZ(0);
|
||||||
|
will-change: opacity;
|
||||||
&.show {
|
&.show {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user