瀏覽代碼

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

苗大 1 年之前
父節點
當前提交
ceb52aad7f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/effects/common-ui/src/components/ellipsis-text/ellipsis-text.vue

+ 1 - 1
packages/effects/common-ui/src/components/ellipsis-text/ellipsis-text.vue

@@ -116,7 +116,7 @@ function handleExpand() {
           ref="ellipsis"
           ref="ellipsis"
           :class="{
           :class="{
             '!cursor-pointer': expand,
             '!cursor-pointer': expand,
-            ['inline-block truncate']: line === 1,
+            ['block truncate']: line === 1,
             [$style.ellipsisMultiLine]: line > 1,
             [$style.ellipsisMultiLine]: line > 1,
           }"
           }"
           :style="{
           :style="{