修复刷新按钮宽度抖动:改用固定 width:120px

- min-width 改为固定 width:120px,容纳最长文案'↻ 同步中...'
- transition 从 all 改为仅 color/border/opacity,避免宽度动画
- 添加 box-sizing:border-box 确保 padding 不撑大按钮
This commit is contained in:
admin committed 2026-07-17 13:24:13 +08:00
1 parent 7bc02075bd
commit baeda63646
2 files changed
+25 -2

No files matched your search

+3 -2
View File
@@ -774,10 +774,11 @@ body {
color: var(--text-secondary);
background: var(--bg-card);
cursor: pointer;
transition: all 0.2s;
transition: color 0.2s, border-color 0.2s, opacity 0.2s;
white-space: nowrap;
min-width: 96px;
width: 120px;
text-align: center;
box-sizing: border-box;
}
.shelf-refresh-btn:hover:not(:disabled) {