调整 TabBar 样式,修复高度和内边距问题
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 14s
Docker Build & Deploy / Deploy to Production (push) Successful in 5s

This commit is contained in:
孙诚
2025-12-29 11:23:33 +08:00
parent 35e3a82673
commit 40c0b0dbe7

View File

@@ -142,12 +142,14 @@ const handleTabClick = (path) => {
/* 重置所有 padding然后只添加安全区域 */
padding: 0 !important;
padding-bottom: env(safe-area-inset-bottom, 0px) !important;
height: 50px !important;
height: auto !important;
min-height: 50px !important;
box-sizing: content-box !important;
}
/* 确保 TabBar 项目居中 */
:deep(.van-tabbar-item) {
padding: 0 !important;
height: 50px !important;
}
</style>