Repository navigation
fix(menu): keep menu-bar menus under the bar, at most three quarters of the window tall, with a more-below hint (0.15.0) - #20
Merged
Conversation
…ost three quarters of the window tall, with a fade and pill while rows remain below (0.15.0) The bar placed its menus with no height limit, so a long menu ran off the bottom of the window, and submenus clamped to the window top, over the bar. Bar menus now open under their button with an inline cap set before measuring and scroll the rest; submenus take the same floor and cap. A card that is cut off shows the more-below hint of FormVis 2.8.4. formtools has no right-click or other point-anchored menu.
The version moves to 0.15.0 in backend/app/__init__.py, frontend/package.json, frontend/package-lock.json, frontend/src/version.ts, setup/cli.py, setup/mcp_stdio.py, setup/mcpb/manifest.json, src-tauri (Cargo.toml, Cargo.lock, tauri.conf.json), the README badge and the Stage line of the two agent guide files at the repository root, each by hand. CHANGELOG.md describes 0.15.0. The browser demos are rebuilt with npm run demo; only demo/assets/demo.js and demo.css changed. Ran on Linux: tsc --noEmit and vite build (clean), vitest (257 passed), the menu bar measured in the rebuilt demo in headless Chrome at 1280x800 and 1000x480 with the CPU slowed 4 times. Not run: the engine tests, the desktop shell, macOS and Windows.
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(menu): keep menu-bar menus under the bar, at most three quarters of the window tall, with a more-below hint (0.15.0)
Summary
min(75% of the window, window height - top - 4)tall; the rest scrolls. Cause:MenuBar.showplaced the menu atr.bottom + 4with no height limit, and.cv-menuhad nomax-heightoroverflow, so a long menu in a short window ran off the bottom and its last rows could not be reached.Popup.showSubclamped the top to 4 pixels from the window top, so a long submenu could rise over the bar..cv-menu-listand a.cv-menu-morepill; the list is masked so rows fade into the card's own glass. It is in place on the first painted frame (showMore(true)while the card isvisibility: hidden), fades out in 160 ms at the last row and back in over 490 ms, and switches with no fade under reduced motion. Tokens:--glass-bg,--glass-border,--text-secondary.openAt(,contextmenu,ContextMenu,place(,popover,role="menu"), so guide section 3b has nothing to apply to. The macOS system menu code is untouched.Commits
Version
v0.15.0 (release commit is last). Bumped by hand:
frontend/package.json, the two own-version fields offrontend/package-lock.json,frontend/src/version.ts,backend/app/__init__.py,setup/cli.py,setup/mcp_stdio.py,setup/mcpb/manifest.json,src-tauri/Cargo.toml, the formtools entry ofsrc-tauri/Cargo.lock,src-tauri/tauri.conf.json(formcompiler's version file), the README badge, and the Stage lines ofAGENTS.mdandCLAUDE.md.CHANGELOG.mdhas a 0.15.0 section, which also lists the two changes merged after 0.14.1 (third-party notices in Settings, About, and the shared Windows finder 1.1.0). The browser demos are rebuilt withnpm run demo(onlydemo/assets/demo.jsanddemo.csschanged; the bundle says 0.15.0).Checks
npm run build(tsc --noEmitandvite build): clean.npx vitest run(the existing unit tests): 257 passed. No test reads the menu's rows orscrollTop, so none was changed.npm run demo: the three demos built.demo/) served over HTTP and measured in headless Chrome, CPU slowed 4 times, every bar menu (File, Edit, View, Tools, Desktop, Help) at 1280x800 and 1000x480. Bar bottom 33.5. In every frame while each menu opened, its top was 38, never higher. At 1280x800 every menu fits (tallest 377 of a 600 cap) and none shows the hint. At 1000x480 View and Desktop are 360 tall (cap 360), bottom 398 of 480, the hint on at full opacity when opened, and off at the last row (scrolled 17 px). The other four fit and show no hint.Not run: a before build of
origin/main(skipped as instructed); the 1871x1080, 1280x720 and 800x320 sizes; any submenu measurement (the only submenu, Help, Demos, is short and was not opened by the probe); the hint timings (part way at 80 ms, gone by 380 ms, back by 750 ms); End and Home; arrowing through a cut-off menu; thefile://opening of the demos; the desktop shell (Tauri) on any platform; the engine tests. DOM law: verified under 4x CPU throttling for the opening frames of every bar menu (top and height). The fade timings and keyboard paths were not verified.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.