Merge pull request #4533 from MontejoJorge/fix/show-title-full-path-metric-label

wrap lavel in span to show the title
This commit is contained in:
Mike Cao authored and GitHub committed 2026-09-15 12:37:51 -07:00
commit cfabb33f8a
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'>) {