Commit 498dd4e0 by Lin

style(ActivityTime): 调整样式以优化布局和视觉效果

- 将.goods-box的overflow属性设置为visible,以改善内容显示。
- 修改.goods-menu-inner的padding和margin,确保视觉一致性。
- 更新商品项的overflow属性为visible,并添加边距以增强布局效果。
- 为第一个和最后一个商品项添加边距,以避免内容重叠。
1 parent 239d2312
......@@ -325,6 +325,7 @@ export default {
}
.goods-box {
width: 100%;
overflow: visible;
.goods-img-wrap {
position: relative;
......@@ -376,17 +377,18 @@ export default {
$goods-item-height: 120px;
$shadow-space: 8px;
width: 100%;
// 向外扩展滚动视口,配合首尾 margin 消除左右空隙并保留阴影绘制空间
width: calc(100% + #{$shadow-space * 2});
margin: toRpx(28) (-$shadow-space);
height: calc(#{$goods-item-height} + #{$shadow-space * 2});
white-space: nowrap;
margin: toRpx(28) 0;
.goods-menu-inner {
display: flex;
flex-wrap: nowrap;
gap: 12px;
height: $goods-item-height;
padding: $shadow-space;
padding: $shadow-space 0;
box-sizing: content-box;
}
......@@ -398,13 +400,21 @@ export default {
height: $goods-item-height;
display: flex;
align-items: stretch;
overflow: hidden;
overflow: visible;
border: none;
border-radius: 8px;
background: #FFF;
box-shadow: 0 2px 8px 0 rgba(44, 102, 247, 0.10);
cursor: pointer;
&:first-child {
margin-left: $shadow-space;
}
&:last-child {
margin-right: $shadow-space;
}
&.active {
border: 1.5px solid rgba(44, 102, 247, 0.10);
background: linear-gradient(0deg, rgba(44, 102, 247, 0.05) 0%, rgba(44, 102, 247, 0.05) 100%), #FFF;
......@@ -437,6 +447,7 @@ export default {
width: 88px;
height: $goods-item-height;
overflow: hidden;
border-radius: 8px 0 0 8px;
margin-right: toRpx(24);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!