fix(insight): trim prompt noise and smooth settings animation

This commit is contained in:
Jason
2026-04-28 13:30:17 +08:00
parent c596d24083
commit 9f9ad337ab
3 changed files with 26 additions and 59 deletions

View File

@@ -916,16 +916,18 @@
}
.insight-collapsible-setting {
display: grid;
grid-template-rows: 0fr;
max-height: 0;
opacity: 0;
transform: translateY(-4px);
transition: grid-template-rows 0.22s ease, opacity 0.18s ease, transform 0.2s ease;
overflow: hidden;
transform: translate3d(0, -4px, 0);
contain: layout paint;
will-change: max-height, opacity, transform;
transition: max-height 0.2s ease, opacity 0.18s ease, transform 0.2s ease;
&.expanded {
grid-template-rows: 1fr;
max-height: 128px;
opacity: 1;
transform: translateY(0);
transform: translate3d(0, 0, 0);
}
&.collapsed {
@@ -934,8 +936,8 @@
}
.insight-collapsible-setting-inner {
min-height: 0;
overflow: hidden;
padding-top: 2px;
backface-visibility: hidden;
}
/* Premium Switch Style */