Repository navigation
fix(menu): keep menus under the menu bar at most three quarters tall, with a more-below hint (0.32.0) - #19
Merged
Merged
Conversation
…hree quarters of the window A bar menu's cap was the room to the window bottom with a 160 pixel minimum, so a short window pushed it past the bottom edge, and its submenus clamped to the window top and could rise over the bar. menuCap and capMenu set a three-quarter cap before the menu is measured, the root menu keeps its floor, and openBeside caps from that floor and never places a submenu above it.
…t-off menu The rows of a menu move into their own scroller inside the glass card, so the bottom rows fade into the card's own glass. A pill with a down chevron sits over the fade while rows remain below, is in place on the first painted frame, fades out at the last row in 160 ms and back in over 490 ms, and has no fade with reduced motion.
… hint A menu opened at the pointer clamped to 4 pixels from the window top with only the stylesheet's full-window cap, so a long one could cover the menu bar. PopupMenu.openAt and the Home card menu now floor at the bar's bottom edge (the window top when the bar is not drawn), take the three-quarter cap before they are measured and show the more-below hint, and still open at the pointer.
Every box in the window is border-box, so the menu's padding and border are already inside its max-height. capMenu no longer subtracts them, which had left each capped menu 14 pixels shorter than the cap.
…ore rows are below The version moves to 0.32.0 at every site setup/version.py reads, in both lock files' own entries, in SECURITY.md, in backend/tests/commands/test_mcp_protocol.py, and by hand in the generated skill reference and python/formfabric/catalogue.json, which ./formfabric agents sync would write the same way once the engine is built. CHANGELOG.md describes 0.32.0, including the changes merged since 0.31.0, and the Unreleased sections of the three HASHOUT logs become 0.32.0. Ran: python3 setup/version.py check (in step), python3 setup/i18n.py check, npm run build (tsc and vite) and the vitest unit layer (372 passed). Not run: the engine pytest layer (no FastAPI here), ./formfabric agents sync, the native engine, 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 menus under the menu bar at most three quarters tall, with a more-below hint (0.32.0)
Summary
menuCap(y),min(75% of innerHeight, innerHeight - y - 4), set inline while the menu is stillvisibility: hidden, and the root menu keepsfloor = y.openBesidenow reads the root menu's floor, caps from it before measuring, and never places a submenu above it..cv-menu-listscroller inside the card; the hint is in place on the first painted frame, fades out in 160 ms at the last row and back in over 490 ms, and has no fade with reduced motion.PopupMenu.openAtwithoutbelow(no caller today) and the Home garment card menu keep their pointer placement but floor at the bar's bottom edge (the window top when the bar is not drawn), take the same cap and show the hint. The card menu also closes on window resize.frontend/HASHOUT_LOG.md: the timeline key menu (six rows placed inside the animation dock), the select dropdowns (ui/dropdown.ts), the map popover (.ffz-pop), and the macOS system menu.Commits
Version
v0.32.0 (release commit is last). Bumped from 0.31.0:
VERSION,src-tauri/tauri.conf.json,src-tauri/Cargo.toml, the app's own entry insrc-tauri/Cargo.lock,native/Cargo.tomland the 14 workspace crate entries innative/Cargo.lock,backend/app/__init__.py,backend/tests/commands/test_mcp_protocol.py(VERSION),frontend/package.json, the two own-version fields offrontend/package-lock.json,frontend/src/version.ts,python/formfabric/__init__.py,python/pyproject.toml,python/formfabric/catalogue.json, the generated skill reference in.agentsand.claude, the README badge andSECURITY.md.CHANGELOG.mdhas a 0.32.0 section that also covers the changes merged since 0.31.0. The Unreleased sections of the frontend, backend and native HASHOUT logs became 0.32.0.Checks
npm run build(tsc --noEmit and vite build): clean.scrollTopfrom the panel, so none changed.python3 setup/version.py check: one version, 0.32.0, across 10 sites and the changelog.python3 setup/i18n.py check: every table complete (no strings added).origin/main: View and Window at 1000x480 were 434.5 tall (over 75%, no hint), and File, View and Window at 800x320 were 274.5 tall (over 75%).Not run: the engine pytest layer (FastAPI is not installed here; only its
VERSIONconstant changed). The browser ran without the engine, so the catalogue menus (Pattern, Sew, Drape, Body, Fabric) had one placeholder row and no submenu was opened or measured. No right-click menu was measured: the Home card menu needs garments from the engine andPopupMenu.openAtat a point has no caller. The hint timings (80 ms, 380 ms, 245 ms, 750 ms), End and Home keys, arrowing through the fade, and the 1000x420 submenu case were not checked. Nofile://demos exist in this repo. Nothing ran on macOS, Windows or in the desktop shell. DOM law: verified under throttling for the position and height of the bar menus (top never above 38 in any frame while opening); the hint's opacity was read after opening (1 where cut off), not frame by frame; not verified for submenus and the card menu.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.