Repository navigation
fix(menu): keep menus under the menu bar, cap them at three quarters of the window and show a more-below hint (0.64.0) - #23
Merged
Conversation
…at most three quarters of the window
…enu while rows remain below
…he bar, with the same cap and hint
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, cap them at three quarters of the window and show a more-below hint (0.64.0)
Summary
MenuBar.openusedPopupMenu.openAt, the right-click routine, which flipped a menu that did not fit above its point and clamped it to 4 px from the window top, and the CSS capcalc(100vh - 8px)was larger than the room under the bar. Fix: a newopenUnderthat never flips and sets an inlinemax-heightofmin(75% of the window, room to the bottom - 4px)while the card is stillvisibility: hidden.openBeside) read the root menu's floor, take the same cap before measuring, and are never placed above the floor; they still open beside their row..cv-menu-list, which scrolls and carries the fade mask, and a 56 by 12 glass pill with a down chevron sits over the fade while rows remain below. It 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 under reduced motion.openAt: canvas menu, layer row menu, panel tab menu, library menus, Appearance effects menu) keep their pointer-corner placement but now take a floor at the bottom of.cv-menubar(4 px when the bar is hidden for the macOS system menu), the same cap and the hint..cv-menu[role="menu"]so the similar-fonts list (.cv-menu.cv-similar,role="listbox"), which keeps its rows directly in the card, still scrolls. The macOS system menu code is untouched.Commits
Version
v0.64.0 (release commit is last). Bumped from 0.63.0 in
src-tauri/tauri.conf.json(formcompiler's version file),src-tauri/Cargo.toml, theformpathentry insrc-tauri/Cargo.lock,frontend/package.json, the two own-version fields offrontend/package-lock.json,frontend/src/version.ts,backend/app/__init__.pyand the README badge.CHANGELOG.mdhas a 0.64.0 section;frontend/HASHOUT_LOG.mdhas one entry per change with the removed lines quoted.Checks
npx tsc --noEmit(frontend): clean after each commit.npx tsc --noEmit -p ../demo: clean.npm run build(tsc and vite build): passes.npm test(vitest): 12 files, 68 passed, 1 skipped. No test read the menu panel, so none was changed.menuprobe.mjs:origin/main), 1280x800: Object, View and Window at top 4, 792 tall, over the bar; Edit, Type and Effect 619 to 683 tall. Canvas menu at top 4, 739 tall. At 1000x480: 7 of 10 bar menus and the canvas menu at top 4, 472 tall.visibility: hiddenand no rows are rebuilt.Not run: the 1871x1080 and 800x320 sizes; submenus were not measured by the probe (only by reading the code); the hint timings (part way at 80 ms, gone by 380 ms, back by 750 ms) and the no-fade-in on first frames were not timed; End and Home and arrow keys (the menus here have no keyboard row navigation, so rule 4 has nothing to act on); reduced motion; the slow-network profile; the layer row menu and the library menus in a browser; the desktop app (Tauri) on any OS. The three committed browser demos were NOT rebuilt:
npm run demostops here withTop-level await is currently not supported with the 'iife' output formatinharfbuzzjs/dist/index.mjs, which no change in this branch touches (0.63.0's changelog already says the demos were not rebuilt and still say 0.59.0). The owner must fix that build and runcd frontend && npm ci && npm run demo, then commitdemo/anddemos/; until then the web demos keep the old menus and version.file://demos were therefore not checked.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.