Skip to content

Commit

Permalink
fix(mantine): make EllipsisText style more adaptable
Browse files Browse the repository at this point in the history
  • Loading branch information
gdostie committed Nov 11, 2024
1 parent 31da72a commit 08e9492
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.root {
display: flex;
width: 100%;
}

.noWrap {
white-space: nowrap;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ export const EllipsisText = polymorphicFactory<EllipsisTextFactory>((props, ref)
}
}}
onMouseLeave={() => setShowTooltip(false)}
display="flex"
w="100%"
className={clsx(rootClass, {[classes.noWrap]: !lineClamp})}
{...rootStyles}
{...others}
>
<Tooltip label={children} opened={showTooltip} {...tooltipProps} {...getStyles('tooltip')}>
<Text
span
inherit
variant={variant}
ref={textRef}
className={clsx(textClass, {[classes.ellipsis]: !lineClamp})}
Expand Down

0 comments on commit 08e9492

Please sign in to comment.