修复样式问题

This commit is contained in:
dftre 2025-01-04 16:52:20 +08:00
parent c20ff75cd8
commit fd3323d980
2 changed files with 37 additions and 5 deletions

View File

@ -191,6 +191,9 @@ const clickMenu = (menu) => {
flex-wrap: wrap;
}
//
$item-size: 100rpx;
.thumb-box {
width: 33.333333%;
display: flex;
@ -198,10 +201,20 @@ const clickMenu = (menu) => {
justify-content: center;
flex-direction: column;
margin-top: 20rpx;
}
.item-menu-image {
width: 120rpx;
height: 120rpx;
padding: 10rpx;
box-sizing: border-box;
.item-menu-image {
width: $item-size;
height: $item-size;
}
.item-menu-name {
font-weight: normal;
font-size: 24rpx;
color: $u-main-color;
margin-top: 10rpx;
text-align: center;
}
}
</style>

View File

@ -278,6 +278,9 @@ const clickMenu = (menu) => {
flex-wrap: wrap;
}
//
$item-size: 100rpx;
.thumb-box {
width: 33.333333%;
display: flex;
@ -285,6 +288,22 @@ const clickMenu = (menu) => {
justify-content: center;
flex-direction: column;
margin-top: 20rpx;
padding: 10rpx;
box-sizing: border-box;
// 使item-size
.item-menu-image {
width: $item-size;
height: $item-size;
}
.item-menu-name {
font-weight: normal;
font-size: 24rpx;
color: $u-main-color;
margin-top: 10rpx;
text-align: center;
}
}
.item-menu-image {