Skip to content

fix(window): menus keep under the bar with a cap and a more-below hint (0.33.0) - #18

Merged
nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.33.0
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.33.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix(window): menus keep under the bar with a cap and a more-below hint (0.33.0)

Summary

  • Menu bar menus (and their submenus) always open just under the bar and are at most three quarters of the window tall; the rest scrolls. Cause: MenuBar.open used openAt, which flipped a menu that did not fit below its point above it and clamped it 4 px under the window's top, over the bar. Fix: openUnder keeps the top at the bar button's bottom plus 4 and sets max-height from menuCap while the panel is hidden, before measuring; openBeside keeps submenus at or under that floor with the same cap.
  • New more-below hint: a menu that is cut off shows a fade and a small pill at its bottom while rows remain below. The card now holds a scrolling .ft-menu-list and the pill, so the mask fades rows into the card's own glass. The hint is set on the first painted frame (showMore(true)), fades out at the last row and back in when scrolling up, never shows at the top, and does not animate with reduced motion.
  • Point-anchored menus: the popover menus of openMenu (chat title, sidebar, composer, Customize, artifacts) clamped their top to 8 px under the window's top, so a long one could cover the bar. place now keeps the top at or under the bar's bottom plus 4 (the window's top when the bar is hidden), caps the height before measuring and keeps the anchor placement. PopupMenu.openAt (right-click) gets the same floor, cap and hint and keeps its pointer-corner flip. Popovers now close on window resize.
  • The release also ships the engine hardening that was on main after 0.32.0 and unreleased (other devices over TLS with per-device tokens, Claude Code's sandbox, skill replace asks, licence texts, tool process and connector fixes); see the CHANGELOG.
  • No change to colours, glass, blur or spacing; no new raw z-index; the macOS system menu code is untouched.

Commits

  • fix(window): open bar menus and their submenus under the bar, at most three quarters of the window tall
  • feat(window): show a fade and a small pill at the bottom of a menu while rows remain below
  • fix(window): keep menus opened at a point under the bar, with the same cap and hint
  • chore(release): 0.33.0, menus keep under the bar with a cap and a more-below hint

Version

v0.33.0 (release commit is last), minor bump from 0.32.0. Bumped: backend/app/__init__.py, frontend/package.json, the two own-version fields of frontend/package-lock.json, frontend/src/version.ts, src-tauri/Cargo.toml, the app's own entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json (formcompiler's version file), the README badge, the manual's Menus line in docs/getting-started.md, both HASHOUT logs' version lines, and a new CHANGELOG.md section. The seven sites of VERSION_SITES in backend/tests/conftest.py all read 0.33.0 (read with the same regexes, not through pytest). No committed demo bundles in this repo.

Checks

  • npm run build in frontend (runs tsc --noEmit && vite build) on the final tree: clean, built.
  • Browser measurement in headless Chrome, CPU slowed 4 times, on a scratch page built from the window's own menubar.ts, menu.ts and styles with stand-in menus (File with a 40-row submenu, View with 45 rows, Help with 4, a 38-row right-click menu, a 40-row popover opened down and up), bar bottom at 36 px:
    • 1280x800: every bar menu top 40 in every frame while opening; View 600 px tall (75% is 600), bottom 640, hint on, off at the last row; File 371 px, fits, no hint; File's long submenu top 196, 600 px, bottom 796, hint on. Right-click at (500, 20): top 40, 600 px, hint on, off at the last row. Popover down: top 86, 520 px; popover up from the bottom: top 234, bottom 754, hint on.
    • 1000x480: File and View top 40, 360 px (75% is 360), bottom 400, hint on, off at the last row; Help 138 px, no hint; File's submenu top 116, bottom 476. Right-click: top 40, 360 px, hint on, off at the end. Popovers: 336 px, top 86 (down) and 98 (up), bottom inside the window, hint on.
  • DOM law: verified under 4x CPU throttling for the menus on the scratch page (lowest top in any frame while opening was 40, under the bar), not in the full window.
  • Not run: the full FormAT window with its engine (the menus were measured on a scratch page, not the app); the guide's 4-size matrix beyond 1280x800 and 1000x480; the hint fade timings; End and Home and other keyboard checks; a before measurement on origin/main; the backend pytest suite and the window smoke test (frontend/tests/window, needs the engine and Python Playwright); the desktop app on macOS, Windows or Linux (no Tauri or Rust build). The frontend has no JS test suite.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

… three quarters of the window tall

MenuBar.open used openAt, which flips a menu that does not fit below its point above it and clamps it 4 px under the window's top, over the bar. openUnder keeps the top at the button's bottom plus 4, sets max-height from menuCap before measuring, and openBeside keeps submenus at or under that floor with the same cap. The rest scrolls.
…ile rows remain below

The menu card holds a scrolling list and the pill, so the mask fades the rows into the card's own glass. The hint is in place on the first painted frame, fades out at the last row in 160 ms and back in over 490 ms, never shows at the top, and does not animate with reduced motion. Bar menus, their submenus and the popover menus all get it.
…e cap and hint

The popover menus of openMenu (title, sidebar, composer, Customize, artifacts) and their submenus clamped their top to 8 px under the window's top, so a long one could cover the menu bar. place now keeps the top at or under the bar's bottom edge plus 4 (the window's top when the bar is hidden), caps the height at menuCap of that floor before measuring, and keeps the anchor placement. Popovers close on resize. PopupMenu.openAt gets the same floor, cap and hint and keeps its pointer-corner flip.
…e-below hint

Version 0.33.0 in the engine, the window, package.json and its lockfile, the desktop shell's Cargo.toml, Cargo.lock and tauri.conf.json, and the README badge. CHANGELOG section, the manual's Menus line and both HASHOUT logs' version lines. The release also carries the hardening after 0.32.0 that was on main unreleased.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 21:46
@nodemode-ai
nodemode-ai merged commit d20e160 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.33.0 branch November 30, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant