Skip to content

fix(menus): menus keep under the title bar, take a three-quarter cap and show a more-below hint (0.12.0) - #14

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

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

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(menus): menus keep under the title bar, take a three-quarter cap and show a more-below hint (0.12.0)

Summary

  • Title bar menus open just under their button and are at most three quarters of the window tall; the rest scrolls. Cause: MenuBar.open used openAt and placeFloating, whose cap was all the room down to the status bar and whose 96 px minimum could lift a menu off its button in a short window. Fix: a new PopupMenu.openUnder with the top fixed at the button's bottom plus 4, no flip, and an inline max-height of menuCap(top) set while hidden, before measuring.
  • Submenus read the root menu's floor and pass the same cap to placeFloating through its new optional cap.
  • A menu cut off by the cap fades its bottom rows into its own glass and shows a 56 by 12 pill with a down chevron while rows remain below; it fades out in 160 ms at the last row and back in over 490 ms. The rows move into a scrolling .cv-menu-list inside the non-scrolling .cv-menu card; showMore(..., true) sets the state before the first paint.
  • Right-click and other point menus (PopupMenu.openAt, the library ContextMenu, the Edit timeline's openList) keep their pointer-corner placement and get the floor, menuCap(barFloor()) and the hint. A standalone PopupMenu now closes on window resize, as the others already did.
  • The macOS system menu code is untouched; no change to colours, glass, blur or spacing.

Commits

  • fix(menus): menu bar menus open under their button with a three-quarter cap, and submenus take the same cap (0.12.0)
  • feat(menus): a menu cut off by the cap fades its bottom rows and shows a small pill while rows remain below (0.12.0)
  • fix(menus): right-click and other point menus keep under the title bar, take the three-quarter cap and show the more-below hint (0.12.0)
  • chore(release): 0.12.0, menus under the title bar with a three-quarter cap and the more-below hint

Version

v0.12.0 (release commit is last), a minor bump from 0.11.1. Bumped: frontend/package.json, the two own-version fields of frontend/package-lock.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, the formcraft entry in src-tauri/Cargo.lock, backend/app/core/config.py, setup/form-app.json, setup/mcpb/manifest.json, the README badge, LICENSES.md, and the current-version lines of both HASHOUT_LOG.md files. CHANGELOG.md has a 0.12.0 section. 0.11.1 was never tagged, so this release also carries it.

Checks

  • npm run build (tsc --noEmit and vite build): clean.
  • vitest: 56 files, 1189 tests passed. No test needed changing.
  • setup/versions.py: all 10 sites read 0.12.0.
  • Headless Chrome probe of the production build (frontend only, no engine), CPU slowed 4 times, at 1280x800 and 1000x480: Edit, View, Studio, Create, Tools, Window and Help each opened at top 44 under a bar bottom of 40 in every frame while opening (38 or so frames each), heights 150 to 289 px against caps of 600 and 360, bottoms inside the window. None was cut off at these sizes, so the hint stayed off, as it should.

Not run: the File menu did not open in the probe and was not measured; the 1871x1080 and 800x320 sizes; any right-click menu measured in a browser (no document open without the engine), before or after; a submenu measured; the hint timings, End and Home, and keyboard checks; the engine tests (pytest), the engine self-check, the installer and the desktop build. No before build of origin/main was made. DOM law: verified under throttling for the bar menus (top never above 44 in any frame); not verified for the hint and the right-click menus.

Merging

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

…er cap, and submenus take the same cap (0.12.0)

Bar menus went through openAt and placeFloating, whose cap was all the room down to the status bar and whose 96 px minimum could lift a menu off its button in a short window. MenuBar.open now calls a new PopupMenu.openUnder: top fixed at the button's bottom plus 4 (never above the title bar's safe area), no flip, and an inline max-height of min(75% of the window, room to the status bar) set while hidden, before measuring. openBeside passes the same cap to placeFloating through its new optional cap. Ran: tsc --noEmit.
…s a small pill while rows remain below (0.12.0)

The panel becomes a glass card that does not scroll, holding a scrolling .cv-menu-list with the mask and a .cv-menu-more pill, so the fade goes into the menu's own glass. showMore sets has-more from the list's scroll position, instantly while the panel is still hidden on opening, then on every scroll: out in 160 ms at the last row, back in 490 ms. Rows, items(), subTop and scrollTop now use the list. Ran: tsc --noEmit.
…r, take the three-quarter cap and show the more-below hint (0.12.0)

PopupMenu.openAt, the library ContextMenu and the Edit timeline's openList still opened at the pointer with all the room to the status bar as their cap. Each now passes menuCap(barFloor()) to placeFloating while hidden, before measuring, so the flip and the clamp work on the capped height; PopupMenu.openAt records the floor so its submenus cap from it. ContextMenu and openList move their rows into a .cv-menu-list with the .cv-menu-more pill, and run showMore before the first paint and on every scroll. A standalone PopupMenu closes on resize. Pointer-corner placement is unchanged. Ran: npm run build (tsc --noEmit and vite build), vitest (56 files, 1189 tests).
…r cap and the more-below hint

Version sites, the changelog section and the two side logs' current-version lines for 0.12.0, a minor release with the menu cap, the more-below hint and the right-click menu fix. 0.11.1 was never tagged, so this release also carries its changes. Ran: npm run build (tsc --noEmit and vite build), vitest (56 files, 1189 tests), setup/versions.py (all 10 sites at 0.12.0) and a headless Chrome probe of the bar menus at 1280x800 and 1000x480 with the CPU slowed 4 times.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 21:48
@nodemode-ai
nodemode-ai merged commit 46c6d44 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.12.0 branch November 30, 2026 21:50
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