wrap lavel in span to show the title

This commit is contained in:
MontejoJorge committed 2026-09-11 16:56:11 +02:00
1 parent 6f29186251
commit 7c74ecf4bd
1 file changed
+4 -3
+4 -3
View File
@@ -1,4 +1,4 @@
import { Row } from '@umami/react-zen';
import { Row, Text } from '@umami/react-zen';
import { Favicon } from '@/components/common/Favicon';
import { FilterLink } from '@/components/common/FilterLink';
import { TypeIcon } from '@/components/common/TypeIcon';
@@ -154,11 +154,12 @@ function PathMetricLabel({ type, data }: MetricLabelProps) {
);
}
function FullPathMetricLabel({ data }: Pick<MetricLabelProps, 'data'>) {
function FullPathMetricLabel({ data }: Pick<MetricLabelProps, "data">) {
const { t, labels } = useMessages();
const { label } = data;
const text = label || `(${t(labels.none)})`;
return label || `(${t(labels.none)})`;
return <Text title={text}>{text}</Text>;
}
function DeviceMetricLabel({ data }: Pick<MetricLabelProps, 'data'>) {