Repository navigation
fix(menu): keep menus under the bar, three quarters tall at most, with a more-below hint (0.47.0) - #30
Merged
Conversation
… quarters tall at most (0.47.0) A bar dropdown's cap was the room below it with a 160 px minimum, so in a short window the minimum pushed it past the bottom, and submenus clamped their top to the window top, over the bar. openAt(x, y, true) now keeps floor = y and caps the panel at menuCap(y), at most 75% of the window and never past its bottom, set before measuring. openBeside takes the root's floor and the same cap. Hover aim is unchanged. HASHOUT_LOG entry 231.
…(0.47.0) Every .fd-menu is now a glass card holding a scrolling .fd-menu-list and a .fd-menu-more pill. While rows remain below, the list's bottom rows fade into the card's glass and the pill shows; at the last row both fade out in 160 ms and come back in 490 ms. A menu opens with the hint already in place and a menu that fits shows nothing. The bar's PopupMenu, the ribbon's ActionMenu and Home's card menu all use it. HASHOUT_LOG entry 232.
…0.47.0) Menus opened at a point clamped their top to 4 px from the window top with only the stylesheet's 100vh - 8px cap, so a long one opened low in a short window slid over the menu bar. PopupMenu.openAt, the ribbon's ActionMenu and Home's card menu now take the bar's bottom edge as their floor (the window top when the bar is not drawn) and cap at menuCap(floor) before measuring. They still open at the pointer, flipped when there is no room, and their submenus keep to the same floor. HASHOUT_LOG entry 233.
…ows are below (0.47.0) Menu bar dropdowns, their submenus and right-click menus keep under the menu bar, are at most three quarters of the window tall, and show a fade and a small pill while rows remain below. Version sites: frontend/package.json, both package-lock.json fields, frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml, formdeck's entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the README badge, and a 0.47.0 line in the Flatpak release list. The three browser demos (demo/, demos/present, demos/build) were rebuilt with their own builds and came out byte-identical: they use neither the menu code nor the menu styles, and do not show the version. Checked: tests/test_f4_versions.py 3 passed; tsc --noEmit clean; vite build clean.
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 bar, three quarters tall at most, with a more-below hint (0.47.0)
Summary
menuCap).100vh - 8pxcap. Fix: they take the bar's bottom edge as their floor (the window top when the bar is not drawn) and the same cap, and still open at the pointer corner, flipped when there is no room..fd-menuis now a glass card holding a scrolling.fd-menu-listand a.fd-menu-morepill, using the app's own--glass-bgand--glass-bordertokens. Cap and position are set while the panel is hidden, and no rows are rebuilt to measure.Commits
Version
v0.47.0 (release commit is last), minor bump from 0.46.3. Sites bumped: frontend/package.json, the two own-version fields in frontend/package-lock.json, frontend/src/version.ts, backend/app/init.py, src-tauri/tauri.conf.json (formcompiler's version file), src-tauri/Cargo.toml, formdeck's entry in src-tauri/Cargo.lock, the README badge, and a new 0.47.0 release line in the Flatpak metainfo. The repo has no CHANGELOG.md, so none was added. The committed demos (demo/, demos/present, demos/build) were rebuilt with their own builds and came out byte-identical: they import neither the menu code nor its styles, and do not show the version, so the release commit has no demo changes.
Checks
tsc --noEmit(frontend): clean.vite build(frontend): clean.tests/test_f4_versions.py: 3 passed.Not run: the guide's full 4-size matrix (only 1280x800 and 1000x480 for bar menus, plus 1000x320 for the right-click menu); hint fade timings; End and Home keys; keyboard navigation; submenu placement was not measured in the browser; the
file://demos in a browser; a before measurement on origin/main; the rest of the backend test suite (the change is frontend only); there are no frontend tests; no Tauri, Rust or Python builds; the longest right-click menus (ribbon action menus, Home card menu) were not opened in the browser.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.