Repository navigation
feat: long right-click menus stay in the window, scroll, and show a more-below hint (1.33.0) - #21
Merged
Merged
Conversation
…ore-below hint Menus opened at a point (right-click, Sort, Quick filters, share and album actions) are capped at three quarters of the window before they are measured, never start above the window top, and keep opening at the pointer. The rows scroll inside the glass card, and a fade with a small pill shows while rows remain below. The menu closes when the window is resized.
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.
feat: long right-click menus stay in the window, scroll, and show a more-below hint (1.33.0)
Summary
openContextMenuinfrontend/src/ui/contextmenu.ts(right-click on tiles, albums, people and folders, plus Sort, Quick filters, share and output actions), and that one routine carries the fix.Math.min(y, innerHeight - h - 8), so a menu taller than the window started above it and its first rows could not be reached; callers that passrect.top - 230orrect.top - 160could also place it above the window.max-heightofmin(75% of the window, window - 8 px)is set while the card isvisibility: hidden, before it is measured, and left and top are floored at 4 px (the window top). It still opens at the pointer, slid left or up to stay inside as before. The menu also closes on window resize..ctx-menu-list), and a fade with a 56 by 12 pill (.ctx-menu-more,--glass-bg,--glass-border,--text-muted) shows while rows remain below; it is in place on the first painted frame and fades out at the last row (160 ms) and back in (490 ms). No change to colours, glass or spacing; no new z-index..menu, placed by CSS under its button, 12 rows) is not opened at a point and was left as it is.Commits
Version
v1.33.0 (release commit is last). Bumped:
frontend/package.json(formcompiler's version file; Tauri reads it), the two own-version fields offrontend/package-lock.json,src-tauri/Cargo.toml, theformdam-desktopentry insrc-tauri/Cargo.lock, the README badge.BUILD_NOTES.mdhas a v1.33.0 section. The repo has noCHANGELOG.mdand no committed demo bundles.Checks
npm run build(tsc --noEmitthenvite build): clean.vitest run: 9 files, 36 tests passed. No test touches the menu.openContextMenucalled with synthetic rows (not a real right-click on a library):Not run: a "before" measurement on origin/main; real right-clicks with a library open (no engine here); the 1871x1080 and 800x320 sizes; the hint fade timings at 80, 380, 245 and 750 ms; keyboard checks (the menu has no arrow-key navigation, only Escape and Tab); the desktop (Tauri, WKWebView) build.
Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.