Skip to content

fix: keep every menu to three quarters of the window and show when more rows lie below (2.32.0) - #31

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

nodemode-ai merged 3 commits into
mainfrom
fix/menu-under-bar-2.32.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix: keep every menu to three quarters of the window and show when more rows lie below (2.32.0)

Summary

  • The menu bar's menus (File, Edit, View, Track, Clip, Event, Transport, Extensions, Settings, Help) were already placed by CSS under their button and never covered the bar, but their cap was a fixed calc(100vh - 64px), so in a short window a long menu filled almost the whole height. mountMenu (ui/file-menu.ts) now sets an inline max-height while the menu is still hidden: three quarters of the window, and never past 4 px above its bottom. An open menu takes the cap again on a resize; no row is rebuilt.
  • The editor's More menu opens upward from the dock with calc(100vh - 140px), which could reach over the menu bar with the dock high. The same code caps it to the room up to 4 px under the bar (.fw-topbar).
  • New: a menu cut off by its cap shows the more-below hint of FormVis 2.8.4: its bottom rows fade into the glass and a small pill with a down chevron sits over the fade while rows remain; both fade out at the last row (160 ms) and back in when scrolled up (490 ms), are in place on the first painted frame, and do not animate with reduced motion. Scrollbars are hidden in formwav, so before this nothing said rows were left.
  • How: the rows move once into a scroller (.fw-menu-list) inside the glass card, which no longer scrolls; the mask is on the list. Because many modules write rows into the menus after they mount (append, prepend, innerHTML), an observer on the card moves anything that lands on it into the list before it paints, and the hint is recomputed when rows land late. Every reader of the menus (native-menu.ts, commands.ts, score.ts, the e2e interface tests) uses descendant queries, which still match.
  • Right-click and other point-anchored menus (guide section 3b): formwav has none. The media list's right-click opens a dialog, and the saved-sessions and theme popovers open under the bar. Nothing changed there. The macOS system menu code is untouched.

Commits

  • fix: keep every menu to three quarters of the window and inside it
  • feat: a menu cut off by its cap shows that more rows lie below
  • chore(release): 2.32.0, the menu cap and the more-below hint

Version

v2.32.0 (release commit is last). Bumped: frontend/package.json, the two own-version fields of frontend/package-lock.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml and its own entry in src-tauri/Cargo.lock, native/formwav-dsp/Cargo.toml and its entry in the Cargo.lock files of native/formwav-dsp, native/formwav-clap and spikes/audio, backend/app/core/version.py, backend/formwav_mcp/server.py, the README badge, and the "Current build version" line of the six HASHOUT_LOG files. The three committed demos (demo/, demos/repair, demos/produce) were rebuilt with their own commands; they have no menus, so they carry only the stylesheet change. There is no CHANGELOG.md.

Checks

  • npm run build in frontend (tsc --noEmit then vite build): clean.
  • The three demo builds: clean.
  • menuprobe on the production build (served over http, no engine running), headless Chrome, CPU slowed 4 times, every bar menu:
    • 1280x800: bar bottom 40, every menu's top 39.5 in every frame while it opened (the CSS anchor, unchanged by this work). Edit, View, Track, Clip and Event were cut off: 600 tall (75% of 800), bottom 639.5, hint on with the pill at opacity 1 when first measured; at the end of the list the hint was off and the pill at 0. File (447), Transport (458), Extensions, Settings and Help fit and showed no hint.
    • 1000x480: File, Edit, View, Track, Clip, Event and Transport were 360 tall (75% of 480), bottom 399.5, hint on, off at the end. Extensions, Settings and Help fit with no hint.
  • Two page errors in every run come from share.ts reading the engine's reply (st.me.desktop) with no engine running; not from the menus.

Not run: the backend's e2e interface tests and frontend/tests/window (they need the Python engine and a Playwright install); the 1871x1080, 1280x720 and 800x320 sizes; the editor's More menu (it needs a session with the dock open); the hint's fade timings at 1871x1080; End and Home; arrow keys against the fade; a cut-off submenu (formwav's menus have none); any macOS window; the rebuilt demos opened from file://. No measurement of the bar before the change was made. DOM law: verified under throttling for the menus' position and height in every frame while they open; the hint's first frame was read once after opening, not frame by frame.

Merging

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

@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 23:07
@nodemode-ai
nodemode-ai merged commit 9697d76 into main Nov 30, 2026
9 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-2.32.0 branch November 30, 2026 23:21
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