Skip to content
Snippets Groups Projects

fix: manage different types of tooltip content & styles tooltip content box

Merged Marcos Pieras requested to merge fix/paohVisError into main
2 files
+ 14
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -193,7 +193,13 @@ export const HyperEdgeRangesBlock: React.FC<HyperEdgeRangesBlockProps> = ({
</TooltipTrigger>
<TooltipContent>
<div>
<span>{row.data[indexRows]}</span>
<span className="overflow-hidden text-ellipsis whitespace-normal max-w-[300px] max-h-[100px] block">
{row.data[indexRows] !== undefined &&
row.data[indexRows] !== '' &&
(typeof row.data[indexRows] !== 'object' || Array.isArray(row.data[indexRows]))
? row.data[indexRows].toString()
: 'NoData'}
</span>
</div>
</TooltipContent>
</Tooltip>
Loading