Skip to content

fix(menu): keep menus under the menu bar at most three quarters tall, with a more-below hint (0.32.0) - #19

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

nodemode-ai merged 5 commits into
mainfrom
fix/menu-under-bar-0.32.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(menu): keep menus under the menu bar at most three quarters tall, with a more-below hint (0.32.0)

Summary

  • Bar menus already opened under their button, but their cap was the room to the window bottom with a 160 pixel minimum, so in a short window the minimum pushed a long menu (View, Window) past the bottom edge and nothing held it to three quarters of the window. The cap is now menuCap(y), min(75% of innerHeight, innerHeight - y - 4), set inline while the menu is still visibility: hidden, and the root menu keeps floor = y.
  • Submenus clamped their top to 4 pixels from the window top. openBeside now reads the root menu's floor, caps from it before measuring, and never places a submenu above it.
  • New: a cut-off menu fades its bottom rows into its own glass and shows a 56 by 12 pill with a down chevron while rows remain below. The rows moved into a .cv-menu-list scroller inside the card; the hint is in place on the first painted frame, fades out in 160 ms at the last row and back in over 490 ms, and has no fade with reduced motion.
  • Right-click menus: PopupMenu.openAt without below (no caller today) and the Home garment card menu keep their pointer placement but floor at the bar's bottom edge (the window top when the bar is not drawn), take the same cap and show the hint. The card menu also closes on window resize.
  • Left alone, with the reason in frontend/HASHOUT_LOG.md: the timeline key menu (six rows placed inside the animation dock), the select dropdowns (ui/dropdown.ts), the map popover (.ffz-pop), and the macOS system menu.

Commits

  • fix(menu): keep bar menus and their submenus under the bar, at most three quarters of the window
  • feat(menu): show a fade and a small pill while rows remain below a cut-off menu
  • fix(menu): keep right-click menus under the bar with the same cap and hint
  • fix(menu): take the three-quarter cap as the menu's whole height
  • chore(release): 0.32.0, menus stay under the menu bar and show when more rows are below

Version

v0.32.0 (release commit is last). Bumped from 0.31.0: VERSION, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, the app's own entry in src-tauri/Cargo.lock, native/Cargo.toml and the 14 workspace crate entries in native/Cargo.lock, backend/app/__init__.py, backend/tests/commands/test_mcp_protocol.py (VERSION), frontend/package.json, the two own-version fields of frontend/package-lock.json, frontend/src/version.ts, python/formfabric/__init__.py, python/pyproject.toml, python/formfabric/catalogue.json, the generated skill reference in .agents and .claude, the README badge and SECURITY.md. CHANGELOG.md has a 0.32.0 section that also covers the changes merged since 0.31.0. The Unreleased sections of the frontend, backend and native HASHOUT logs became 0.32.0.

Checks

  • npm run build (tsc --noEmit and vite build): clean.
  • Existing vitest unit layer: 372 passed. No test read rows or scrollTop from the panel, so none changed.
  • python3 setup/version.py check: one version, 0.32.0, across 10 sites and the changelog. python3 setup/i18n.py check: every table complete (no strings added).
  • Headless Chrome on the production build served locally, CPU slowed 4 times, Home hidden by script, every one of the 11 bar menus at 1871x1080, 1280x800, 1280x720, 1000x480 and 800x320: lowest top seen in any frame while opening 38 under a bar bottom of 33.5, every menu within 75% of the window and inside it. Window at 1280x720: 540 tall (cap 540), hint on, off after scrolling to the end. View and Window at 1000x480: 360 tall (cap 360), hint on, off at the end. File, View and Window at 800x320: 240 tall, hint on, off at the end. Menus that fit showed no hint (pill opacity 0).
  • Before, the same probe on a build of origin/main: View and Window at 1000x480 were 434.5 tall (over 75%, no hint), and File, View and Window at 800x320 were 274.5 tall (over 75%).

Not run: the engine pytest layer (FastAPI is not installed here; only its VERSION constant changed). The browser ran without the engine, so the catalogue menus (Pattern, Sew, Drape, Body, Fabric) had one placeholder row and no submenu was opened or measured. No right-click menu was measured: the Home card menu needs garments from the engine and PopupMenu.openAt at a point has no caller. The hint timings (80 ms, 380 ms, 245 ms, 750 ms), End and Home keys, arrowing through the fade, and the 1000x420 submenu case were not checked. No file:// demos exist in this repo. Nothing ran on macOS, Windows or in the desktop shell. DOM law: verified under throttling for the position and height of the bar menus (top never above 38 in any frame while opening); the hint's opacity was read after opening (1 where cut off), not frame by frame; not verified for submenus and the card menu.

Merging

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

…hree quarters of the window

A bar menu's cap was the room to the window bottom with a 160 pixel minimum, so a short window pushed it past the bottom edge, and its submenus clamped to the window top and could rise over the bar. menuCap and capMenu set a three-quarter cap before the menu is measured, the root menu keeps its floor, and openBeside caps from that floor and never places a submenu above it.
…t-off menu

The rows of a menu move into their own scroller inside the glass card, so the bottom rows fade into the card's own glass. A pill with a down chevron sits over the fade while rows remain below, is in place on the first painted frame, fades out at the last row in 160 ms and back in over 490 ms, and has no fade with reduced motion.
… hint

A menu opened at the pointer clamped to 4 pixels from the window top with only the stylesheet's full-window cap, so a long one could cover the menu bar. PopupMenu.openAt and the Home card menu now floor at the bar's bottom edge (the window top when the bar is not drawn), take the three-quarter cap before they are measured and show the more-below hint, and still open at the pointer.
Every box in the window is border-box, so the menu's padding and border are already inside its max-height. capMenu no longer subtracts them, which had left each capped menu 14 pixels shorter than the cap.
…ore rows are below

The version moves to 0.32.0 at every site setup/version.py reads, in both lock files' own entries, in SECURITY.md, in backend/tests/commands/test_mcp_protocol.py, and by hand in the generated skill reference and python/formfabric/catalogue.json, which ./formfabric agents sync would write the same way once the engine is built. CHANGELOG.md describes 0.32.0, including the changes merged since 0.31.0, and the Unreleased sections of the three HASHOUT logs become 0.32.0. Ran: python3 setup/version.py check (in step), python3 setup/i18n.py check, npm run build (tsc and vite) and the vitest unit layer (372 passed). Not run: the engine pytest layer (no FastAPI here), ./formfabric agents sync, the native engine, the desktop shell, macOS and Windows.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 22:31
@nodemode-ai
nodemode-ai merged commit 5cf1c6b into main Nov 30, 2026
7 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.32.0 branch November 30, 2026 22:38
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