mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 02:29:03 +08:00
updates max length
This commit is contained in:
parent
8fe2fe5aec
commit
057fba112b
@ -98,9 +98,10 @@ export const getTooltip = (node: {
|
||||
};
|
||||
|
||||
export const transformLabel = (label: string) => {
|
||||
const MAX_LENGTH = 18;
|
||||
const MAX_LENGTH = 13;
|
||||
const MAX_SHOW = 10;
|
||||
if (label.length > MAX_LENGTH) {
|
||||
return `${label.slice(0, MAX_LENGTH)}..`;
|
||||
return `${label.slice(0, MAX_SHOW)}...`;
|
||||
}
|
||||
return label;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user