replace text input by texterarea (#3473)
* #3472 replace text input by texterarea * background color change in dark mode * box shadow and hide overflow * added tooltip in overflow text * resolved comment on #3473 * resolved comments in #3473
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { OverflowingTextWithTooltip } from '../../../display/tooltip/OverflowingTextWithTooltip';
|
||||
|
||||
import { EllipsisDisplay } from './EllipsisDisplay';
|
||||
|
||||
type TextDisplayProps = {
|
||||
@ -6,5 +8,7 @@ type TextDisplayProps = {
|
||||
};
|
||||
|
||||
export const TextDisplay = ({ text, maxWidth }: TextDisplayProps) => (
|
||||
<EllipsisDisplay maxWidth={maxWidth}>{text}</EllipsisDisplay>
|
||||
<EllipsisDisplay maxWidth={maxWidth}>
|
||||
<OverflowingTextWithTooltip text={text} />
|
||||
</EllipsisDisplay>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user