From 0ac7171ab5a5de38f8e44a73f49a947d190872a4 Mon Sep 17 00:00:00 2001 From: Timi Date: Wed, 14 Oct 2026 00:15:03 +0800 Subject: [PATCH] fix cell-title-clip --- src/assets/style/tdesign-custom.less | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/assets/style/tdesign-custom.less b/src/assets/style/tdesign-custom.less index 7ef3864..36d1f21 100644 --- a/src/assets/style/tdesign-custom.less +++ b/src/assets/style/tdesign-custom.less @@ -8,6 +8,10 @@ -webkit-transform: none; } +:root { + --td-cell-group-title-padding-left: 32px; +} + .cell-button { --td-button-border-radius: 1rem; @@ -77,12 +81,38 @@ } .cell-title-clip { + width: 100%; + min-width: 0; + + .t-cell-group { + min-width: 0; + } + + .t-swipe-cell, + .t-cell { + min-width: 0; + } + + .t-swipe-cell { + width: 100%; + } .t-cell__title { flex: 1 1 0; + width: 0; overflow: hidden; min-width: 0; } + + .t-cell__title-text { + display: block; + width: 100%; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + min-width: 0; + } } .t-divider {