yangdx
commited on
Commit
·
449346d
1
Parent(s):
a71ca10
Optimize tooltips posistion
Browse files
lightrag_webui/src/components/graph/PropertiesView.tsx
CHANGED
@@ -232,7 +232,7 @@ const PropertyRow = ({
|
|
232 |
<span className="text-primary/60 tracking-wide whitespace-nowrap">{getPropertyNameTranslation(name)}</span>:
|
233 |
<Text
|
234 |
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis"
|
235 |
-
tooltipClassName="max-w-80"
|
236 |
text={value}
|
237 |
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
|
238 |
side="left"
|
|
|
232 |
<span className="text-primary/60 tracking-wide whitespace-nowrap">{getPropertyNameTranslation(name)}</span>:
|
233 |
<Text
|
234 |
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis"
|
235 |
+
tooltipClassName="max-w-80 -translate-x-10"
|
236 |
text={value}
|
237 |
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
|
238 |
side="left"
|
lightrag_webui/src/components/graph/PropertyRowComponents.tsx
CHANGED
@@ -45,7 +45,7 @@ export const PropertyValue = ({ value, onClick, tooltip }: PropertyValueProps) =
|
|
45 |
<div className="flex items-center gap-1">
|
46 |
<Text
|
47 |
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis"
|
48 |
-
tooltipClassName="max-w-80"
|
49 |
text={value}
|
50 |
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
|
51 |
side="left"
|
|
|
45 |
<div className="flex items-center gap-1">
|
46 |
<Text
|
47 |
className="hover:bg-primary/20 rounded p-1 overflow-hidden text-ellipsis"
|
48 |
+
tooltipClassName="max-w-80 -translate-x-15"
|
49 |
text={value}
|
50 |
tooltip={tooltip || (typeof value === 'string' ? value : JSON.stringify(value, null, 2))}
|
51 |
side="left"
|