diff --git a/pages/discount/discount.vue b/pages/discount/discount.vue index 66f6ba0..9347640 100644 --- a/pages/discount/discount.vue +++ b/pages/discount/discount.vue @@ -212,6 +212,8 @@ export default { .card-info { flex: 1; + // xuchao: min-width:0 允许 flex 子项收缩到内容宽度以下,配合 nowrap 文本出省略号 + min-width: 0; display: flex; flex-direction: column; gap: 0; @@ -243,6 +245,7 @@ export default { .card-address { flex: 1; + min-width: 0; font-size: 14px; color: #727272; overflow: hidden;