Skip to content

Commit

Permalink
fix: fix ellipsisText style
Browse files Browse the repository at this point in the history
fix ellipsisText style
  • Loading branch information
zhangtengjin committed Dec 30, 2020
1 parent 781691a commit 1dbe3ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ellipsisText/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default (props: IProps) => {
let { value = '', className = '', style = {}, placement = undefined } = props;
return (
<Tooltip placement={placement} title={`${value}`}>
<div data-testid="ellipsis_text" className={isEmpty(className) ? 'dtc-ellipsis-text' : 'dtc-ellipsis-text ' + className} style={style}>
<span data-testid="ellipsis_text" className={isEmpty(className) ? 'dtc-ellipsis-text' : 'dtc-ellipsis-text ' + className} style={style}>
{`${value}`}
</div>
</span>
</Tooltip>
)
}
1 change: 1 addition & 0 deletions src/components/ellipsisText/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
text-overflow: ellipsis;
overflow: hidden;
cursor: pointer;
vertical-align: top;
}

0 comments on commit 1dbe3ae

Please sign in to comment.