fix(tabbar): 修复微信小程序TabBar样式脱节导致图标膨胀为320px巨型图的样式问题

这个提交包含在:
xcbyy
2026-10-14 09:09:59 +08:00
父节点 010edc130f
当前提交 fee661789a
共有 2 个文件被更改,包括 92 次插入 和 15 次删除

查看文件

@@ -179,6 +179,67 @@ view, text, image, input, button {
color: transparent;
}
/* 底部自定义 TabBar 全局兜底规范,锁死图标尺寸与定位,杜绝微信小程序中 image 标签退化为 320x240 默认尺寸 */
.custom-tabbar-root {
width: 100%;
.tabbar-container {
position: fixed !important;
bottom: 0 !important;
left: 0 !important;
right: 0 !important;
margin: 0 auto !important;
max-width: 450px !important;
box-sizing: border-box !important;
height: calc(118rpx + env(safe-area-inset-bottom)) !important;
display: flex !important;
align-items: flex-start !important;
justify-content: space-around !important;
z-index: 999 !important;
}
.tab-item {
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
height: 118rpx !important;
}
.tab-icon-svg {
width: 50rpx !important;
height: 50rpx !important;
max-width: 50rpx !important;
max-height: 50rpx !important;
flex-shrink: 0 !important;
}
.plus-circle-btn {
width: 96rpx !important;
height: 96rpx !important;
min-width: 96rpx !important;
min-height: 96rpx !important;
max-width: 96rpx !important;
max-height: 96rpx !important;
border-radius: 50% !important;
flex-shrink: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
.plus-svg {
width: 48rpx !important;
height: 48rpx !important;
flex-shrink: 0 !important;
}
}
.radar-icon-box {
width: 52rpx !important;
height: 52rpx !important;
.radar-svg {
width: 52rpx !important;
height: 52rpx !important;
flex-shrink: 0 !important;
}
}
}
/* 移动端与 H5 响应式体验优化 */
/* #ifdef H5 */
html, body {