Skip to content

feat(menus): a long menu shows a fade and a pill while rows remain below, and right-click menus keep under the menu bar (2.8.4) - #38

Merged
nodemode-ai merged 3 commits into
mainfrom
fix/menu-more-hint-2.8.4
Nov 29, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
fix/menu-more-hint-2.8.4

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

feat(menus): a long menu shows a fade and a pill while rows remain below, and right-click menus keep under the menu bar (2.8.4)

Summary

  • The person who reported the 2.8.3 overlap asked for a sign that a menu cut off by the height cap has more options below. A menu bar menu, or a submenu of one, that is cut off now fades its bottom rows and shows a narrow pill (56 by 12 pixels) with a chevron over them. Both go at the last row (160 ms) and fade back in when the rows are scrolled up (490 ms). Nothing shows at the top. The owner chose this look from mockups.
  • frontend/src/ui/menu.ts: a PopupMenu panel now holds .cv-menu-list, the rows, which scroll, and .cv-menu-more, the pill. The card keeps its glass and no longer scrolls itself. showMore() sets has-more on every scroll, and on opening it sets the state with the transitions off, so a menu never opens with its hint fading in.
  • frontend/src/styles/panels.css: the fade is a mask on the rows, so they fade into the card's own glass and nothing is painted on it. --menu-more is a registered @property, so the mask animates. scroll-padding-block-end keeps a row focused with the keys above the fade. Reduced motion turns the fades off.
  • Right-click menus (openAt: the layer, tab, guide and task bar menus) had the clamp 2.8.3 removed from the bar menus, so a long one filled a small window from top 4, over the menu bar. The owner saw the layer menu do this at 1280 by 800. openAt now keeps the top at or under the in-window menu bar (barFloor(), the window top when the bar is hidden, as with the macOS menu bar). It sets the same three-quarter cap before measuring and shows the same hint. It still opens at the pointer and flips above or left when there is no room.
  • The three browser demos are built again at 2.8.4.

Commits

  • feat(menus): a long menu bar menu shows a fade and a pill while rows remain below
  • fix(menus): right-click menus keep under the menu bar, take the same height cap and show the same hint
  • chore(release): 2.8.4, a long menu shows a fade and a pill while rows remain below, right-click menus keep under the menu bar, and all three demos at this version

Short hashes change when the commits are signed, so they are left out.

Version

v2.8.4 (release commit is last). Bumped: frontend/package.json, frontend/package-lock.json (both fields), frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml, src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the README badge, packaging/linux/ai.nodemode.formvis.metainfo.xml (a 2.8.4 release line), and a CHANGELOG.md section for 2.8.4. The demo bundles are rebuilt with npm run demo and npm run demos.

Checks

  • tsc --noEmit in frontend: clean. npx vitest run: 54 files, 299 tests passed. ./formvis counts --check: README.md is accurate.
  • A production build in headless Chromium, at 1871 by 1080:
    • File opens with the pill at full opacity in its first three painted frames.
    • At the last row the hint is gone: the pill was at 0.29 after 80 ms and at 0 by 380 ms.
    • Scrolled up 120 pixels, the hint fades back: 0.70 at 245 ms, 1 at 745 ms.
    • F10 then End focuses Exit with no hint, and Home brings the hint back.
    • Filter, which fits, has no hint.
  • At 1280 by 600, arrowing down through File never put the focused row inside the fade while the hint showed.
  • At 1000 by 420, a cut-off submenu has the hint.
  • The 2.8.3 placement check still passes: CPU slowed 4 times, four window sizes, every bar menu and submenu under the bar and within three quarters of the window.
  • Right-click on the layer row at 1280 by 800: before, top 4 and 792 tall, over the bar; now top 74 and 600 tall (three quarters), with the hint. At 1871 by 1080: top 38 and 810 tall, with the hint.
  • Right-click high and low on the canvas at 1280 by 800, 1871 by 1080 and 1000 by 480: under the bar, inside the window, and no hint where the menu fits. Their last submenus keep under the bar and to the cap.
  • The three rebuilt demos, opened from file:// at 1280 by 800: File at top 38, 600 tall, with the hint, showing 2.8.4.
  • Not run: the Tauri window on Linux (WebKitGTK), Windows (WebView2) or macOS; the engine tests.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

…remain below

A menu bar menu, or a submenu of one, that is cut off by its height cap now
fades its bottom rows into the menu's glass and shows a narrow pill with a
chevron over them. Both go when the last row is reached and fade back in when
the rows are scrolled up. The rows now scroll inside the card, so the fade is
a mask on the rows and nothing is painted on the glass. Right-click menus are
unchanged.
…height cap and show the same hint

A menu opened at a point (the layer, tab, guide and task bar menus) was clamped
to 4 pixels from the window top, so in a small window a long one covered the
menu bar. It now keeps below the in-window menu bar, is at most three quarters
of the window tall, and shows the fade and pill when rows remain below. It
still opens at the pointer and flips above or left when there is no room.
… remain below, right-click menus keep under the menu bar, and all three demos at this version
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 29, 2026 05:19
@nodemode-ai
nodemode-ai merged commit 72245bb into main Nov 29, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-more-hint-2.8.4 branch November 29, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant