Optimize tooltips posistion

This commit is contained in:
yangdx
2025-04-15 14:23:42 +08:00
parent e32c724c05
commit 0a9e96640d
2 changed files with 2 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ const PropertyRow = ({
<span className="text-primary/60 tracking-wide whitespace-nowrap">{getPropertyNameTranslation(name)}</span>:
<Text
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis"
tooltipClassName="max-w-80"
tooltipClassName="max-w-80 -translate-x-10"
text={value}
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
side="left"

View File

@@ -45,7 +45,7 @@ export const PropertyValue = ({ value, onClick, tooltip }: PropertyValueProps) =
<div className="flex items-center gap-1">
<Text
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis"
tooltipClassName="max-w-80"
tooltipClassName="max-w-80 -translate-x-15"
text={value}
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
side="left"