change(ui): fitler series expand on click header part

This commit is contained in:
Shekar Siri 2024-07-03 15:36:22 +02:00
parent 218dbb6c86
commit 95c6de95a0

View file

@ -138,10 +138,9 @@ function FilterSeries(props: Props) {
)}
{expandable && !expanded && (
<Space className="justify-between w-full px-5 py-2">
<Space className="justify-between w-full px-5 py-2 cursor-pointer" onClick={() => setExpanded(!expanded)}>
<FilterCountLabels filters={series.filter.filters} toggleExpand={() => setExpanded(!expanded)}/>
<Button onClick={() => setExpanded(!expanded)}
size="small"
<Button size="small"
icon={expanded ? <ChevronUp size={16}/> : <ChevronDown size={16}/>}/>
</Space>
)}