mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 02:28:30 +08:00
fix(web): monitoring chart zero-value color and date range indicator (#38821)
This commit is contained in:
parent
509a8b1452
commit
b34a5940b3
@ -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" />
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user