diff --git a/src/components/Dashboard/common/ElipsisText.jsx b/src/components/Dashboard/common/ElipsisText.jsx index fd06cd72..1c66ca08 100644 --- a/src/components/Dashboard/common/ElipsisText.jsx +++ b/src/components/Dashboard/common/ElipsisText.jsx @@ -1,6 +1,7 @@ import { useLayoutEffect, useRef, useState } from 'react' import PropTypes from 'prop-types' import { Typography } from 'antd' +import Tooltip from './Tooltip' const { Text } = Typography @@ -70,29 +71,32 @@ const ElipsisText = ({ children, style, className, title, code, ...rest }) => { const showTruncated = truncated && Boolean(end) const RootTag = code ? 'code' : 'span' + const content = ( + + + {text} + + {text} + + {start} + ... + + {end} + + + + ) + return ( - - - {text} - - {text} - - {start} - ... - - {end} - - - + {truncated ? {content} : content} ) }