Repository navigation
fix: keep every menu to three quarters of the window and show when more rows lie below (2.32.0) - #31
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: keep every menu to three quarters of the window and show when more rows lie below (2.32.0)
Summary
calc(100vh - 64px), so in a short window a long menu filled almost the whole height.mountMenu(ui/file-menu.ts) now sets an inlinemax-heightwhile 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.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)..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.Commits
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 buildin frontend (tsc --noEmitthenvite build): clean.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.