Forráskód Böngészése

fix(admin): 商品编辑页移除横向滚动条

- 表单滚动容器增加 overflow-x: hidden,避免出现横向滚动
- 卡片 body 增加 width: 100% 和 box-sizing: border-box,防止 padding 导致横向溢出
iwt 1 napja
szülő
commit
684de9145e
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      cfc-web/src/views/admin/ProductEdit.vue

+ 3 - 0
cfc-web/src/views/admin/ProductEdit.vue

@@ -1188,6 +1188,8 @@ async loadGiftRule(productId) {
   min-height: 0;
   overflow: hidden;
   padding: 24px;
+  width: 100%;
+  box-sizing: border-box;
 }
 .cover-uploader {
   display: flex;
@@ -1378,6 +1380,7 @@ async loadGiftRule(productId) {
   flex: 1;
   min-height: 0;
   overflow-y: auto;
+  overflow-x: hidden;
   padding-right: 8px;
   margin-right: -8px;
 }