perf: prevent unnecessary reflow

This commit is contained in:
one 2025-04-07 05:17:16 +08:00 committed by 亢奋猫
parent 0ab0df452c
commit 3fc97d273c

View File

@ -213,6 +213,8 @@ const MessageContainer = styled.div`
.menubar {
opacity: 0;
transition: opacity 0.2s ease;
transform: translateZ(0);
will-change: opacity;
&.show {
opacity: 1;
}