fix: SimpleSelect chevron icon state sync and add notClearable to monitoring selector (#23858)

This commit is contained in:
lyzno1
2025-08-13 13:55:10 +08:00
committed by GitHub
parent 21e1b825fe
commit e11a334c9b
5 changed files with 77 additions and 82 deletions

View File

@@ -54,6 +54,7 @@ export default function ChartView({ appId, headerRight }: IChartViewProps) {
<SimpleSelect
items={Object.entries(TIME_PERIOD_MAPPING).map(([k, v]) => ({ value: k, name: t(`appLog.filter.period.${v.name}`) }))}
className='mt-0 !w-40'
notClearable={true}
onSelect={(item) => {
const id = item.value
const value = TIME_PERIOD_MAPPING[id]?.value ?? '-1'

View File

@@ -1,5 +1,5 @@
import React from 'react'
import ChartView from './chartView'
import ChartView from './chart-view'
import TracingPanel from './tracing/panel'
import ApikeyInfoPanel from '@/app/components/app/overview/apikey-info-panel'