Repository navigation
fix(menus): keep menus under the menu bar, cap them at three quarters and show a more-below hint (0.15.0) - #24
Merged
Conversation
…most three quarters of the window
…le rows remain below
… same cap and hint
…elow hint Version sites and the changelog section for 0.15.0. Ran: type check, 853 interface tests and the production build on Linux, and the bar menus measured in headless Chrome at 4x CPU slowdown. Not run: the desktop build, native and engine tests (no engine code changed).
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(menus): keep menus under the menu bar, cap them at three quarters and show a more-below hint (0.15.0)
Summary
MenuBar.openplaced them withPopupMenu.openAt, the point routine, which flipped a menu that did not fit below its point above it and clamped it to 4 px from the window top. Fix: a newopenUnderkeeps the top at the bar bottom plus 4 and sets an inlinemax-heightofmin(75% of innerHeight, innerHeight - top - 4)while the panel is hidden, before it is measured.openBeside) read the floor of their root menu, take the same cap before measuring and are never placed above the bar; they still open beside their row..cv-menu-listinside the non-scrolling card, the list gets the bottom mask fade and.cv-menu-more(56 by 12 pill, glass tokens, down chevron) sits over it. It is in place on the first painted frame, fades out in 160 ms at the last row and back in over 490 ms.openAt, the routine for menus opened at a point, keeps its pointer-corner placement and gains the bar floor (.cv-menubarbottom plus 4, or 4 when the bar is hidden for the macOS system menu), the cap and the hint. FormRig has no caller of it today: the search found no right-click menu (thecontextmenulistener inui/settings.tstoggles a favourite theme), so this only guards future context menus.z-index, macOS system menu code untouched. Rationale and removed lines are infrontend/HASHOUT_LOG.md.Commits
Version
v0.15.0 (release commit is last). Bumped from 0.14.5:
frontend/package.json, the two own-version fields offrontend/package-lock.json,frontend/src/version.ts,backend/app/__init__.py,native/Cargo.tomland the 24frg-*entries ofnative/Cargo.lock,src-tauri/Cargo.tomland itsformrigentry insrc-tauri/Cargo.lock,src-tauri/tauri.conf.json, the README version badge, and a newCHANGELOG.mdsection. 0.14.5 was never tagged, so the release notes fold it in.Checks
npm run build(tsc --noEmit and vite build): clean, before and after the bump.tests/unit/ui/menu.test.ts: 6 of 6 pass, unchanged. Fullnpm test: 853 of 853 pass after the bump.Not run: the 1871x1080 and 1280x720 sizes, the hint timings (80/380 ms out, 245/750 ms in) and reduced motion, arrow-key focus against the fade, a cut-off submenu showing the hint, right-click measurements (FormRig has no right-click menu to open), the desktop build, the macOS window with Menus in Window, and the native and engine tests (no engine code changed). There are no committed web demos.
Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.