修复:将前端宽屏布局改为响应式

This commit is contained in:
xiaowang
2026-03-24 09:59:52 +08:00
parent 5302af0c1a
commit c041c754cb
13 changed files with 170 additions and 92 deletions
+34 -1
View File
@@ -457,7 +457,6 @@ const handleProductClick = (item: any) => {
height: 100%;
object-fit: cover;
border-radius: 16px;
object-fit: stretch;
}
/* 轮播指示器样式 */
@@ -681,4 +680,38 @@ const handleProductClick = (item: any) => {
color: #999;
font-size: 14px;
}
@media (min-width: 992px) {
.header,
.search-section,
.section {
max-width: var(--frontend-content-max-width);
margin-left: auto;
margin-right: auto;
}
.banner-container {
padding: 0 24px;
}
.banner-carousel {
aspect-ratio: 16 / 6;
max-height: 340px;
}
.horizontal-scroll {
overflow: visible;
flex-wrap: wrap;
}
.product-card {
flex: 1 1 calc(25% - 12px);
width: calc(25% - 12px);
min-width: 180px;
}
.product-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
</style>