mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-27 20:20:20 +00:00
0205ef810a2f6679303801a5f6c4a49eccf4201d
index.html:
- CRITICAL JS BUG: setTheme() had a ghost orphan 'else' block left from
the old hljs-switching version that was never fully removed. The function
correctly closed at line 2077 but a dangling '} else { ... hljsTheme.href
... }' remained at lines 2078-2082. This caused a JS syntax error that
silently killed the entire <script> block — theme toggle, hamburger menu,
copy buttons, nav active state, smooth scroll: all broken. Fixed by
removing the dead code entirely.
- Add overflow-x: hidden to html element to prevent any overflowing content
from enabling horizontal scroll on mobile.
compare/*.html (all 9 pages):
- Add overflow-x: hidden to html element (same fix, same reason)
- Add @media (max-width: 640px) block that hides .nav-back span text and
the 'Get started' CTA on narrow screens. The compare nav has three items
(logo, back-link, theme+CTA) with no hamburger — at mobile widths these
were colliding/overflowing. Now at ≤640px: back-link shows '←' only
(span hidden), CTA hidden, theme toggle stays visible and usable.
- Wrap nav-back text in <span> so the mobile rule can target it
- Add word-break: break-word and min-width: 0 to .narrative to prevent
long words/URLs from forcing horizontal overflow
Description
Languages
Python
72.3%
JavaScript
22.4%
CSS
3.2%
HTML
1.6%
Shell
0.4%
Other
0.1%