chore: metrics explorer minor fixes (#8042)

This commit is contained in:
Amlan Kumar Nandy 2025-05-26 13:43:06 +07:00 committed by GitHub
parent cdbf23d053
commit 650cf81329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -75,7 +75,7 @@ function MetricDetails({
hour."
placement="top"
>
<span>{`${timeSeriesTotal} ${timeSeriesActive} active`}</span>
<span>{`${timeSeriesTotal} total ${timeSeriesActive} active`}</span>
</Tooltip>
);
}, [metric]);

View File

@ -154,10 +154,14 @@ function MetricsTreemap({
<foreignObject
width={nodeWidth}
height={nodeHeight}
style={getTreemapTileStyle(node.data)}
onClick={(): void => openMetricDetails(node.data.id)}
>
<div style={getTreemapTileTextStyle()}>
<div
style={{
...getTreemapTileStyle(node.data),
...getTreemapTileTextStyle(),
}}
>
{`${node.data.displayValue}%`}
</div>
</foreignObject>