Skip to content

fix(menu): keep menus under the bar, capped at three quarters of the window, with a more-below hint (0.57.0) - #25

Merged
nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.57.0
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.57.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix(menu): keep menus under the bar, capped at three quarters of the window, with a more-below hint (0.57.0)

Summary

  • Menu-bar menus no longer cover the bar. Cause: the bar opened its menus through PopupMenu.openAt, whose vertical clamp let a menu taller than the room below rise to top: 4, over the bar. Fix: a new openUnder keeps the menu at the bar's bottom edge plus 4 px and caps it at min(75% of the window, room to the bottom); the rows move into an inner .cv-menu-list that scrolls. Submenus take the root menu's floor and the same cap.
  • New: a menu cut off by the cap fades its bottom rows and shows a small pill with a down arrow (.cv-menu-more, the app's own glass and border tokens). Both go away at the last row and come back on scrolling up. The hint is set while the panel is still visibility: hidden (showMore(true)), so it is in place on the first painted frame.
  • Right-click and every other point-anchored menu (all go through PopupMenu.openAt: workspace, library, sources, keywords, publish, develop presets, snapshots, history, panel headers) keep their pointer-corner placement but now take the bar as their floor, the same cap and the same hint.
  • No look change: colours, glass, blur and spacing are as before; no new z-index. The macOS native menu code is untouched.

Commits

  • fix(menu): keep menu-bar menus and their submenus under the bar
  • feat(menu): show a more-below hint on a menu cut off by the cap
  • fix(menu): keep right-click menus under the bar, capped, with the hint
  • chore(release): 0.57.0

Version

v0.57.0 (release commit is last), a minor bump from 0.56.1 on main because the hint is new. Bumped: frontend/package.json, both own-version fields of frontend/package-lock.json, frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml, the app's entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json (formcompiler's version file), the README badge, SECURITY.md (0.57.x) and the three HASHOUT_LOG headers. CHANGELOG has a v0.57.0 section. The committed demo bundles in demo/, demos/develop and demos/share are rebuilt with their own vite configs; their index.html also picks up the amoled theme boot that frontend/index.html gained since the last demo build.

Checks

  • npm run build in frontend (runs tsc --noEmit then vite build): clean, exit 0.
  • Demo builds (vite build --config demo/vite.config.mjs, and the same for demos/develop and demos/share): exit 0. The demos' own tsc -p reports 7 unused-symbol errors (TS6133/TS6138) in files this branch does not touch (face-regions.ts, folder-sync.ts, session-panel.ts, ai.ts, extensions.ts, merge-dialog.ts, brand.ts); they come from main.
  • Menu probe on the rebuilt web demo in headless Chromium, 4x CPU throttling, all six bar menus at 1280x800, 1000x480 and 800x320. After: every menu's top is 38 px against a bar bottom of 33.5 px, and the lowest top seen on the frames captured while opening is 38 px (no opening frames were captured for View at 800x320); every height is at most 75% of the window and every bottom inside it. Photo at 1000x480 is 360 px (was 370, over the cap); Edit, Photo and View at 800x320 are 240 px at top 38 (before: Edit and Photo 312 px at top 4, over the bar; View 250 px). The hint is on in each cut-off menu at opening and off at the last row; no hint on menus that fit. Before numbers are the same probe on a demo build of origin/main.
  • DOM law: verified under throttling for the bar menus (no frame above the bar while opening, cap and position set while hidden).

Not run: the window tests (frontend/tests/window, they need the Python engine), the backend tests, the right-click menus measured in a browser (the probe opened only bar menus; the right-click change was checked by reading the code), the guide's 1871x1080 and 1280x720 sizes, submenus measured on their own, the hint fade timings, End and Home, keyboard navigation, the demos opened from file://, and the desktop builds on macOS, Windows and Linux.

Merging

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

A menu-bar menu taller than the room under the bar was placed by openAt,
which flips it above its point and clamps it to 4 px from the window top,
so it covered the bar. Bar menus now open with openUnder: top fixed under
the button, no flip, and an inline max-height of at most 75% of the
window set before measuring. Submenus take the same cap and never rise
above the bar's floor.
A long menu gave no sign that rows remain below. The card now holds a
scrolling list and a pill: the bottom rows fade into the menu's own glass
and a small pill with a down chevron shows while rows remain below, gone
at the last row (160 ms) and back when scrolled up (490 ms). A menu opens
with the hint already in place; reduced motion switches it with no fade.
openAt clamped to 4 px from the window top with only the stylesheet's
100vh - 8px cap, so a long right-click menu could cover the menu bar.
It now takes the menu bar's bottom edge as its floor (the window top
when the bar is hidden), the same 75% cap set before measuring, and the
more-below hint. It still opens at the pointer, flipped above or left
when there is no room, and its submenus follow.
Version sites, as 0.56.0's release: frontend/package.json, both fields of
frontend/package-lock.json, frontend/src/version.ts,
backend/app/__init__.py, src-tauri/Cargo.toml, its Cargo.lock entry,
src-tauri/tauri.conf.json, the README badge, SECURITY.md (0.57.x), the
three HASHOUT_LOG headers. CHANGELOG v0.57.0 dated 2026-11-30.

A minor number: the more-below hint is new. The demo bundles in demo/,
demos/develop and demos/share are rebuilt with their own scripts, so the
web demos carry the menu fix; their index.html also picks up the amoled
theme boot that frontend/index.html gained since the last demo build.

Ran: tsc --noEmit, npm run build, the three demo builds, and the menu
probe on the rebuilt demo in headless Chromium at 1280x800, 1000x480 and
800x320 under 4x CPU. The window tests, the right-click menus in the
desktop window and the desktop builds were not run here.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 21:56
@nodemode-ai
nodemode-ai merged commit 1e639fe into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.57.0 branch November 30, 2026 22:05
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