Skip to content

Commit

Permalink
chore: 优化css
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Aug 8, 2024
1 parent 5b84eae commit 5f6db64
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/effects/common-ui/src/ellipsis-text/ellipsis-text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ function onExpand() {
<div
ref="ellipsis"
:class="{
pointer: expand,
[$style.ellipsisOneLine]: line === 1,
'!cursor-pointer': expand,
['inline-block truncate']: line === 1,
[$style.ellipsisMultiLine]: line > 1,
}"
:style="`-webkit-line-clamp: ${line}; max-width: ${textMaxWidth};`"
Expand All @@ -137,17 +137,7 @@ function onExpand() {
</VbenTooltip>
</template>

<style>
.pointer {
@apply cursor-pointer;
}
</style>

<style module>
.ellipsisOneLine {
@apply inline-block truncate;
}
.ellipsisMultiLine {
display: -webkit-box;
-webkit-box-orient: vertical;
Expand Down

0 comments on commit 5f6db64

Please sign in to comment.