wrap lavel in span to show the title
This commit is contained in:
1 parent
6f29186251
commit
7c74ecf4bd
1 file changed
+4
-3
@@ -1,4 +1,4 @@
|
|||||||
import { Row } from '@umami/react-zen';
|
import { Row, Text } from '@umami/react-zen';
|
||||||
import { Favicon } from '@/components/common/Favicon';
|
import { Favicon } from '@/components/common/Favicon';
|
||||||
import { FilterLink } from '@/components/common/FilterLink';
|
import { FilterLink } from '@/components/common/FilterLink';
|
||||||
import { TypeIcon } from '@/components/common/TypeIcon';
|
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 { t, labels } = useMessages();
|
||||||
const { label } = data;
|
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'>) {
|
function DeviceMetricLabel({ data }: Pick<MetricLabelProps, 'data'>) {
|
||||||
|
|||||||
Reference in new issue
Block a user