hermes - ✅(Solved) Fix [Bug]: Dashboard theme picker dropdown has no scrollbar — themes overflow viewport [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#25213Fetched 2026-05-14 03:48:02
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4cross-referenced ×1

Fix Action

Workaround

Add this CSS rule to the built bundle (web_dist/assets/index-<hash>.css):

div[role="listbox"]{max-height:70dvh;overflow-y:auto}

This targets the theme picker's listbox element directly and adds a scrollbar. Tested and working.

PR fix notes

PR #25220: fix(dashboard): constrain theme picker dropdown height so themes are scrollable (#25213)

Description (problem / solution / changelog)

Summary

  • Adds max-h-[70dvh] overflow-y-auto to the ThemeSwitcher listbox so users with many community themes can scroll the dropdown instead of having themes overflow past the viewport.
  • Scoped to the component, not a global div[role="listbox"] rule.

The bug

ThemeSwitcher.tsx renders a role="listbox" popup with no max-height or overflow constraint. With 20+ themes installed under ~/.hermes/dashboard-themes/, the list extends past the viewport edge and any theme above or below the visible band is unreachable. Reporter saw 15 of 26 themes visible — every theme alphabetically before "india" was hidden off-screen with no scrollbar.

Sibling header dropdowns already cap themselves:

  • LanguageSwitcher.tsx:72max-h-80 overflow-y-auto
  • SlashPopover.tsx:136max-h-64 overflow-y-auto

The theme picker was the only one missing the constraint, so it broke alone when the theme catalog grew.

The fix

One className change on the listbox container:

-            "absolute z-50 min-w-[240px]",
+            "absolute z-50 min-w-[240px] max-h-[70dvh] overflow-y-auto",

70dvh (dynamic viewport height) matches the reporter's tested workaround and behaves correctly on mobile browsers where chrome shrinks/grows (vh would over-allocate when the address bar is hidden).

Scoping to ThemeSwitcher rather than the user's suggested global div[role="listbox"]{...} CSS keeps SlashPopover, LanguageSwitcher, and any future listbox dropdowns on their own height budgets.

Test plan

  • npx eslint src/components/ThemeSwitcher.tsx — clean
  • npx tsc -p tsconfig.app.json --noEmit — clean
  • Visual: with dropUp=false (header use, default), the dropdown is bounded at 70% of viewport height and gets a scrollbar once content exceeds that — themes before "india" become reachable.
  • Visual: with dropUp=true (sidebar rail), the same cap applies so the upward-opening menu also stays inside the viewport.
  • No test infrastructure under web/ (web/package.json has no test script and no vitest/jest dep), so no unit test added.

Related

  • Fixes #25213.
  • Same pattern already in web/src/components/LanguageSwitcher.tsx:72 and web/src/components/SlashPopover.tsx:136.

Changed files

  • web/src/components/ThemeSwitcher.tsx (modified, +1/-1)

Code Example

div[role="listbox"]{max-height:70dvh;overflow-y:auto}
RAW_BUFFERClick to expand / collapse

Environment

  • OS: Linux Mint 22.3 (Ubuntu Noble 24.04), Cinnamon desktop
  • Hermes: Latest pip install (hermes-agent[web,pty])
  • Browser: Chromium-based
  • Themes: 6 built-in + 20 community themes from minutechreview/hermes-dashboard-themes

Bug Description

The Dashboard theme picker dropdown (the popup when clicking the palette icon in the header) has no scrollbar and no max-height constraint. When 20+ community themes are installed, the list extends beyond the viewport and themes at the top/bottom are simply invisible — the user can't scroll to see them.

In my case, only 15 out of 26 themes were visible. The first visible theme was "india" (alphabetically), meaning every theme before "india" (default, midnight, ember, mono, cyberpunk, rose, coffee-shop, desert-mirage, egypt) was hidden off-screen with no way to reach them.

Steps to Reproduce

  1. Install 10+ community themes to ~/.hermes/dashboard-themes/
  2. Run hermes dashboard --port 9119
  3. Click the palette icon in the header to open the theme picker
  4. Observe that the dropdown extends beyond the browser viewport with no scrollbar

Expected Behavior

The dropdown should have a constrained max-height (e.g., max-height: 70dvh) with overflow-y: auto, so all themes are accessible via scrolling.

Actual Behavior

The dropdown has no height limit and flows past the viewport edge. Themes outside the visible area cannot be reached.

Workaround

Add this CSS rule to the built bundle (web_dist/assets/index-<hash>.css):

div[role="listbox"]{max-height:70dvh;overflow-y:auto}

This targets the theme picker's listbox element directly and adds a scrollbar. Tested and working.

Notes

  • The theme picker uses Tailwind utility classes but is missing max-h-* and overflow-y-auto in its class list.
  • The div[role="listbox"] selector specifically targets the theme dropdown without affecting other listboxes.
  • This is a purely CSS fix — no JS/TS changes needed.

Reported by Agent Zyn4, ds56 offered a little suggestion.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - ✅(Solved) Fix [Bug]: Dashboard theme picker dropdown has no scrollbar — themes overflow viewport [1 pull requests, 1 participants]