fix: optimize ArtifactListImpl
This commit is contained in:
@@ -294,10 +294,10 @@
|
||||
background: #fff;
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
transition:
|
||||
transform .15s ease,
|
||||
box-shadow .15s ease,
|
||||
border-color .15s ease;
|
||||
/* hover 效果(border / box-shadow / transform)全部走合成层友好的属性,
|
||||
但禁止 transition:box-shadow 是 paint 操作,在 20+ 张卡片上快速
|
||||
划过鼠标会触发频繁重绘,导致悬浮卡顿;拖动时也会让 drag image 变重、
|
||||
视觉上"粘"在半动画上。直接瞬变,干净利落。 */
|
||||
}
|
||||
|
||||
.artifact-card:hover {
|
||||
|
||||
Reference in New Issue
Block a user