Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
adding updates based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
yyassi-heartex committed Jan 29, 2024
1 parent ed8fd63 commit 1596361
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/DataGroups/TextDataGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ const valueToString = (value) => {

export const TextDataGroup = ({ value }) => {
const output = valueToString(value);
const style = {
padding: 5,
height: TextDataGroup.height,
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
};

return (
<Tooltip title={output}>
<div
style={{ padding: 5, height: TextDataGroup.height, overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }}
>
<div style={style}>
{output}
</div>
</Tooltip>
Expand Down

0 comments on commit 1596361

Please sign in to comment.