fix(Tooltip): fix truncated content and add scrollbar in property tooltips

This commit is contained in:
yangdx
2025-03-12 04:59:18 +08:00
parent a124c2d391
commit 32e7fdc4fc
6 changed files with 39 additions and 26 deletions

View File

@@ -138,7 +138,7 @@ const PropertyRow = ({
className="hover:bg-primary/20 rounded p-1 text-ellipsis"
tooltipClassName="max-w-80"
text={value}
tooltip={tooltip || value}
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
side="left"
onClick={onClick}
/>