Conversation
FindBar mounts outside the app-shell subtree that defines --titlebar-height, so the CSS var fallback is what actually positions it. The fallback was 0px, pinning the bar at top: 8px — right on the titlebar strip, overlapping the min/max/close controls (and the titlebar tool cluster) on Windows. Align with floating-hud and notifications, which already fall back to TITLEBAR_HEIGHT (34px), so the bar lands just below the titlebar band.
|
This was generated by AI during triage. Summary: Problems:
Solution: Checked against |
|
Verified against current main (
(For the record: I filed #83192 claiming the opposite reading of the tree; I've corrected the issue body and closed it as covered by this PR.) Optional suggestion: the current |
|
Hi @teknium1 and @OutThisLife — could one of you take a look at this PR / approve the CI runs? It has been ready since Aug 6: 2 commits, MERGEABLE, no conflicts, and the fix itself is verified (see my review above — the CSS fallback is the effective value since the bar mounts outside the The blocker is that CI never started: the check-suite for Happy to address any review feedback. |
|
This exact fix (0px → 34px |
Problem
Pressing
Ctrl+Fopens the find-in-page bar attop: 8pxon Windows, overlapping the native window controls (minimize/maximize/close) and the titlebar tool cluster.Impact: the find bar overlaps the main app window's close button (the × at the top-right corner) — a stray click near the bar's buttons can land on the close button instead, closing the entire Hermes window and losing the in-progress draft. This is a real user-facing footgun on every Windows install, not just a cosmetic issue.
Root cause
FindBarmounts outside the app-shell subtree that defines--titlebar-height, so the CSS variable fallback is what actually positions it. The fallback was0px, pinning the bar onto the titlebar strip:Fix
Fall back to
TITLEBAR_HEIGHT(34px), matching the existing pattern infloating-hud.tsandnotifications.tsx:The bar now renders just below the titlebar band (top: 42px), clear of the window controls.
Verification
find-bar.test.tsx: 48/48 tests passCtrl+Fno longer overlaps min/max/close