fix(ui): fix textelipsis comp
This commit is contained in:
parent
86a6aa6c07
commit
e5a73ada4f
2 changed files with 3 additions and 3 deletions
|
|
@ -115,7 +115,7 @@ function SessionItem(props: RouteComponentProps<Props>) {
|
|||
className={cn('text-lg', {'color-teal cursor-pointer': !disableUser && hasUserId, [stl.userName]: !disableUser && hasUserId, 'color-gray-medium' : disableUser || !hasUserId})}
|
||||
onClick={() => (!disableUser && !hasUserFilter) && onUserClick(userId, userAnonymousId)}
|
||||
>
|
||||
<TextEllipsis text={userDisplayName} maxWidth="200" popupProps={{ inverted: true, size: 'tiny' }} />
|
||||
<TextEllipsis text={userDisplayName} maxWidth="200px" popupProps={{ inverted: true, size: 'tiny' }} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ const Trigger = forwardRef(({ textOrChildren, maxWidth, style, className, ...res
|
|||
const TextEllipsis = ({
|
||||
text,
|
||||
hintText = text,
|
||||
children,
|
||||
children = null,
|
||||
maxWidth="auto",
|
||||
style = {},
|
||||
className="",
|
||||
|
|
@ -98,4 +98,4 @@ const TextEllipsis = ({
|
|||
|
||||
TextEllipsis.displayName ="TextEllipsis";
|
||||
|
||||
export default TextEllipsis;
|
||||
export default TextEllipsis;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue