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:
Jeet Desai
2024-01-18 14:19:36 +05:30
committed by GitHub
parent ceddd211cf
commit 74a54da403
5 changed files with 103 additions and 6 deletions

View File

@ -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>
);