Browse Source

fix: text overflow when text omission component width is lower than maxWidth (#4364)

苗大 6 months ago
parent
commit
ceb52aad7f

+ 1 - 1
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="{