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

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
+23 -6
View File
@@ -569,12 +569,29 @@ onMounted(async () => {
font-size: 14px;
}
@media (min-width: 768px) {
.header {
width: min(100%, var(--frontend-page-max-width));
left: 50%;
right: auto;
transform: translateX(-50%);
@media (min-width: 992px) {
.main-content {
min-height: calc(100vh - 60px);
height: auto;
}
.category-sidebar {
width: 128px;
}
.product-section {
padding: 24px;
}
.product-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
padding: 0;
}
}
@media (min-width: 1280px) {
.product-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
</style>