Repository navigation
fix(menus): menus keep under the title bar, take a three-quarter cap and show a more-below hint (0.12.0) - #14
Merged
Merged
Conversation
…er cap, and submenus take the same cap (0.12.0) Bar menus went through openAt and placeFloating, whose cap was all the room down to the status bar and whose 96 px minimum could lift a menu off its button in a short window. MenuBar.open now calls a new PopupMenu.openUnder: top fixed at the button's bottom plus 4 (never above the title bar's safe area), no flip, and an inline max-height of min(75% of the window, room to the status bar) set while hidden, before measuring. openBeside passes the same cap to placeFloating through its new optional cap. Ran: tsc --noEmit.
…s a small pill while rows remain below (0.12.0) The panel becomes a glass card that does not scroll, holding a scrolling .cv-menu-list with the mask and a .cv-menu-more pill, so the fade goes into the menu's own glass. showMore sets has-more from the list's scroll position, instantly while the panel is still hidden on opening, then on every scroll: out in 160 ms at the last row, back in 490 ms. Rows, items(), subTop and scrollTop now use the list. Ran: tsc --noEmit.
…r, take the three-quarter cap and show the more-below hint (0.12.0) PopupMenu.openAt, the library ContextMenu and the Edit timeline's openList still opened at the pointer with all the room to the status bar as their cap. Each now passes menuCap(barFloor()) to placeFloating while hidden, before measuring, so the flip and the clamp work on the capped height; PopupMenu.openAt records the floor so its submenus cap from it. ContextMenu and openList move their rows into a .cv-menu-list with the .cv-menu-more pill, and run showMore before the first paint and on every scroll. A standalone PopupMenu closes on resize. Pointer-corner placement is unchanged. Ran: npm run build (tsc --noEmit and vite build), vitest (56 files, 1189 tests).
…r cap and the more-below hint Version sites, the changelog section and the two side logs' current-version lines for 0.12.0, a minor release with the menu cap, the more-below hint and the right-click menu fix. 0.11.1 was never tagged, so this release also carries its changes. Ran: npm run build (tsc --noEmit and vite build), vitest (56 files, 1189 tests), setup/versions.py (all 10 sites at 0.12.0) and a headless Chrome probe of the bar menus at 1280x800 and 1000x480 with the CPU slowed 4 times.
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): menus keep under the title bar, take a three-quarter cap and show a more-below hint (0.12.0)
Summary
MenuBar.openusedopenAtandplaceFloating, whose cap was all the room down to the status bar and whose 96 px minimum could lift a menu off its button in a short window. Fix: a newPopupMenu.openUnderwith the top fixed at the button's bottom plus 4, no flip, and an inlinemax-heightofmenuCap(top)set while hidden, before measuring.placeFloatingthrough its new optionalcap..cv-menu-listinside the non-scrolling.cv-menucard;showMore(..., true)sets the state before the first paint.PopupMenu.openAt, the libraryContextMenu, the Edit timeline'sopenList) keep their pointer-corner placement and get the floor,menuCap(barFloor())and the hint. A standalonePopupMenunow closes on window resize, as the others already did.Commits
Version
v0.12.0 (release commit is last), a minor bump from 0.11.1. Bumped:
frontend/package.json, the two own-version fields offrontend/package-lock.json,src-tauri/tauri.conf.json,src-tauri/Cargo.toml, theformcraftentry insrc-tauri/Cargo.lock,backend/app/core/config.py,setup/form-app.json,setup/mcpb/manifest.json, the README badge,LICENSES.md, and the current-version lines of bothHASHOUT_LOG.mdfiles.CHANGELOG.mdhas a 0.12.0 section. 0.11.1 was never tagged, so this release also carries it.Checks
npm run build(tsc --noEmit and vite build): clean.setup/versions.py: all 10 sites read 0.12.0.Not run: the File menu did not open in the probe and was not measured; the 1871x1080 and 800x320 sizes; any right-click menu measured in a browser (no document open without the engine), before or after; a submenu measured; the hint timings, End and Home, and keyboard checks; the engine tests (pytest), the engine self-check, the installer and the desktop build. No before build of origin/main was made. DOM law: verified under throttling for the bar menus (top never above 44 in any frame); not verified for the hint and the right-click menus.
Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.