Repository navigation
fix(window): menus keep under the bar with a cap and a more-below hint (0.33.0) - #18
Merged
Merged
Conversation
… three quarters of the window tall MenuBar.open used openAt, which flips a menu that does not fit below its point above it and clamps it 4 px under the window's top, over the bar. openUnder keeps the top at the button's bottom plus 4, sets max-height from menuCap before measuring, and openBeside keeps submenus at or under that floor with the same cap. The rest scrolls.
…ile rows remain below The menu card holds a scrolling list and the pill, so the mask fades the rows into the card's own glass. The hint is in place on the first painted frame, fades out at the last row in 160 ms and back in over 490 ms, never shows at the top, and does not animate with reduced motion. Bar menus, their submenus and the popover menus all get it.
…e cap and hint The popover menus of openMenu (title, sidebar, composer, Customize, artifacts) and their submenus clamped their top to 8 px under the window's top, so a long one could cover the menu bar. place now keeps the top at or under the bar's bottom edge plus 4 (the window's top when the bar is hidden), caps the height at menuCap of that floor before measuring, and keeps the anchor placement. Popovers close on resize. PopupMenu.openAt gets the same floor, cap and hint and keeps its pointer-corner flip.
…e-below hint Version 0.33.0 in the engine, the window, package.json and its lockfile, the desktop shell's Cargo.toml, Cargo.lock and tauri.conf.json, and the README badge. CHANGELOG section, the manual's Menus line and both HASHOUT logs' version lines. The release also carries the hardening after 0.32.0 that was on main unreleased.
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(window): menus keep under the bar with a cap and a more-below hint (0.33.0)
Summary
MenuBar.openusedopenAt, which flipped a menu that did not fit below its point above it and clamped it 4 px under the window's top, over the bar. Fix:openUnderkeeps the top at the bar button's bottom plus 4 and setsmax-heightfrommenuCapwhile the panel is hidden, before measuring;openBesidekeeps submenus at or under that floor with the same cap..ft-menu-listand the pill, so the mask fades rows into the card's own glass. The hint is set on the first painted frame (showMore(true)), fades out at the last row and back in when scrolling up, never shows at the top, and does not animate with reduced motion.openMenu(chat title, sidebar, composer, Customize, artifacts) clamped their top to 8 px under the window's top, so a long one could cover the bar.placenow keeps the top at or under the bar's bottom plus 4 (the window's top when the bar is hidden), caps the height before measuring and keeps the anchor placement.PopupMenu.openAt(right-click) gets the same floor, cap and hint and keeps its pointer-corner flip. Popovers now close on window resize.z-index; the macOS system menu code is untouched.Commits
Version
v0.33.0 (release commit is last), minor bump from 0.32.0. Bumped:
backend/app/__init__.py,frontend/package.json, the two own-version fields offrontend/package-lock.json,frontend/src/version.ts,src-tauri/Cargo.toml, the app's own entry insrc-tauri/Cargo.lock,src-tauri/tauri.conf.json(formcompiler's version file), the README badge, the manual's Menus line indocs/getting-started.md, both HASHOUT logs' version lines, and a newCHANGELOG.mdsection. The seven sites ofVERSION_SITESinbackend/tests/conftest.pyall read 0.33.0 (read with the same regexes, not through pytest). No committed demo bundles in this repo.Checks
npm run buildinfrontend(runstsc --noEmit && vite build) on the final tree: clean, built.menubar.ts,menu.tsand styles with stand-in menus (File with a 40-row submenu, View with 45 rows, Help with 4, a 38-row right-click menu, a 40-row popover opened down and up), bar bottom at 36 px:origin/main; the backend pytest suite and the window smoke test (frontend/tests/window, needs the engine and Python Playwright); the desktop app on macOS, Windows or Linux (no Tauri or Rust build). The frontend has no JS test suite.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.