mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-19 15:18:03 +00:00
style(desktop): hide search when there's nothing to search
Empty datasets no longer render a search field. Adds a `searchHidden` prop to PageSearchShell (artifacts/skills/messaging) and gates cron + command center sessions search on a non-empty list. The chat sidebar already did this via showSessionSections.
This commit is contained in:
parent
9e02b18828
commit
aecdc75bb0
6 changed files with 33 additions and 21 deletions
|
|
@ -300,7 +300,7 @@ export function CommandCenterView({
|
|||
</p>
|
||||
</div>
|
||||
<div className="flex shrink-0 items-center gap-2">
|
||||
{section === 'sessions' && (
|
||||
{section === 'sessions' && sessions.length > 0 && (
|
||||
<SearchField
|
||||
containerClassName="max-w-[40vw]"
|
||||
onChange={next => setQuery(next)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue