File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ export default function Explore() {
146146 // Clear selected traces and spans
147147 setSelectedTraceIds ( [ ] ) ;
148148 setSelectedSpanIds ( [ ] ) ;
149+ // Clear search terms when switching to log mode
150+ setMetadataSearchTerms ( [ ] ) ;
151+ setLogSearchValue ( "" ) ;
149152 setIsLogMode ( true ) ;
150153
151154 // Rebuild URL with mode=log at the end
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ const SearchBar: React.FC<SearchBarProps> = ({
215215 size = "icon"
216216 onClick = { ( ) => ! disabled && setIsSearchExpanded ( true ) }
217217 disabled = { disabled }
218- className = " w-10 h-10 flex-shrink-0"
218+ className = { ` w-10 h-10 flex-shrink-0 ${ criteria . length > 0 ? "bg-zinc-100 dark:bg-zinc-800" : "" } ` }
219219 >
220220 < Search className = "w-4 h-4" />
221221 </ Button >
You can’t perform that action at this time.
0 commit comments