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:
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 { 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'>) {
|
||||
|
||||
Reference in new issue
Block a user