fix(index): 修复预设时长方块点击时布局跳变

preset-item 默认无 border,selected 加 2rpx border 致外宽变化,flex-wrap
重新换行(3行/2行/2列跳变)。加 box-sizing:border-box + 默认透明 border
占位,selected 只变色不改变外宽,布局稳定。

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liucheng
2026-07-25 15:13:19 +08:00
parent 03ea5881be
commit 4b5f195a18
+2
View File
@@ -293,7 +293,9 @@
.preset-item {
flex: 0 0 calc(33.33% - 12rpx);
box-sizing: border-box;
background: var(--bg-soft);
border: 2rpx solid transparent;
border-radius: 16rpx;
padding: 20rpx 0;
text-align: center;