fix(web): monitoring chart zero-value color and date range indicator (#38821)

This commit is contained in:
非法操作 2026-07-14 11:30:56 +08:00 committed by GitHub
parent 509a8b1452
commit b34a5940b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ const RangeSelector: FC<Props> = ({ isCustomRange, ranges, onSelect }) => {
<SelectItem
key={item.value}
value={item.value}
className="h-8 py-0 pr-2 pl-7 system-md-regular"
className="relative h-8 py-0 pr-2 pl-7 system-md-regular"
>
<SelectItemText className="px-0">{item.name}</SelectItemText>
<SelectItemIndicator className="absolute top-[8px] left-2 ml-0" />

View File

@ -99,7 +99,7 @@ const Chart: React.FC<IChartProps> = ({
const tokenSummary = getTokenSummary(statistics)
const showTokenSummary =
CHART_TYPE_CONFIG[chartType].showTokens && hasNonZeroChartData(statistics, 'total_price')
const isZeroSummary = summaryValue === '0' || summaryValue === '0 ms'
const isZeroSummary = !hasNonZeroChartData(statistics, yField)
return (
<div