Skip to content

Commit

Permalink
Merge pull request #1158 from Adslot/fix-treepicker-ellipsis
Browse files Browse the repository at this point in the history
fix: treepicker ellipsis
  • Loading branch information
pphminions authored Jun 2, 2021
2 parents e008698 + ad26f0f commit c08f1a3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/TreePicker/Node/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,17 @@ class TreePickerNodeComponent extends React.PureComponent {
</GridCell>
) : null}
<GridCell stretch {...labelCellProps} dts="label">
<TextEllipsis>
<TextEllipsis
popoverProps={{
strategy: 'fixed',
placement: 'bottom',
modifiers: [
{ name: 'flip', enabled: false },
{ name: 'preventOverflow', enabled: false },
{ name: 'hide', enabled: false },
],
}}
>
<span>{nodeRenderer(node)}</span>
{!_.isEmpty(pathElement) ? (
<span className={`${baseClass}-metadata`}>
Expand Down

0 comments on commit c08f1a3

Please sign in to comment.