From ceb52aad7faa2207e6a8b4c2614f7d8f3819f877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=97=E5=A4=A7?= Date: Wed, 11 Sep 2024 16:21:36 +0800 Subject: [PATCH] fix: text overflow when text omission component width is lower than maxWidth (#4364) --- .../common-ui/src/components/ellipsis-text/ellipsis-text.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/effects/common-ui/src/components/ellipsis-text/ellipsis-text.vue b/packages/effects/common-ui/src/components/ellipsis-text/ellipsis-text.vue index 7e6572eb3..bd4f1fd38 100644 --- a/packages/effects/common-ui/src/components/ellipsis-text/ellipsis-text.vue +++ b/packages/effects/common-ui/src/components/ellipsis-text/ellipsis-text.vue @@ -116,7 +116,7 @@ function handleExpand() { ref="ellipsis" :class="{ '!cursor-pointer': expand, - ['inline-block truncate']: line === 1, + ['block truncate']: line === 1, [$style.ellipsisMultiLine]: line > 1, }" :style="{