fix(ui): 多项 UI 修复 — 弹窗遮挡/按钮可见性/暗黑闪烁/云函数版本
- 计划编辑弹窗移出 .container 避免 fixed 降级 + 修复滚动 - dock bottom 40rpx→8rpx 紧贴底部, sheet padding 同步调整 - 计划编辑器取消/恢复默认按钮可见性修复(bg 匹配容器) - ui-btn--danger 按钮可见性修复 - 清除确认弹窗跟随暗黑模式切换 - icons.js build() 中 Fill 路径覆盖 outlined 路径修复 - plan.js getPlanDay 忽略 customPlans 修复 - darkMode.js 冗余三元简化 - util.js fileToDataURI fallback 可读性提升 - theme.js: BASE_VARS 与 getThemeStyle 统一来源, 去 50ms navbar 延迟 - app.wxss: 移除 page transition 和 background-color 减少闪白 - 云函数 wx-server-sdk 版本统一 ~2.6.3, tts cloud.init 一致化 - 闪白问题: wx.setBackgroundColor 三层防护(onLaunch/applyThemeToPage/switchTab) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
}
|
||||
|
||||
.ui-btn--danger {
|
||||
background: var(--card-bg);
|
||||
background: rgba(var(--danger-rgb), 0.06);
|
||||
color: var(--danger);
|
||||
border: 2rpx solid rgba(var(--danger-rgb), 0.3);
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
width: 100%;
|
||||
border-radius: 32rpx 32rpx 0 0;
|
||||
padding: 28rpx 32rpx 40rpx;
|
||||
/* bottom sheet 需要避开 Dock TabBar(高度 ~110rpx + 40rpx 间隙),
|
||||
否则最底下的按钮会被 toolbar 遮挡。150rpx = dock 高度 + margin。 */
|
||||
padding-bottom: calc(150rpx + env(safe-area-inset-bottom));
|
||||
/* bottom sheet 需要避开 Dock TabBar (占视口底部 ~158rpx)。
|
||||
168rpx 留出可见间距。 */
|
||||
padding-bottom: calc(168rpx + env(safe-area-inset-bottom));
|
||||
animation: uiModalSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user