Skip to content

fix(menus): menus keep under the menu bar, take a three-quarter cap and show a more-below hint (0.39.0) - #20

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

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

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix(menus): menus keep under the menu bar, take a three-quarter cap and show a more-below hint (0.39.0)

Summary

  • Menu-bar and ribbon drop-downs already opened under their button, but their cap was the room left below with a 160 px minimum, so in a short window the minimum pushed a menu past the bottom, and nothing held it to three quarters of the window. They now cap at menuCap(y): at most 75% of the window and never past its bottom, set while the menu is still hidden.
  • Submenus clamped their top to 4 px from the window top, so a long submenu could cover the menu bar. openBeside now reads the root menu's floor, caps before measuring and never goes above the floor.
  • A cut-off menu shows the more-below hint (FORM-MENU-OVERLAP-FIX 1.2.0, rule 8): the bottom rows fade into the card and a small pill with a down chevron sits over the fade while rows remain below. The rows move into a .ft-pm-list scroller inside the card so the mask does not fade the card's border. The hint is set before the first painted frame.
  • Right-click menus (the ribbon and Quick Access Toolbar ActionMenu, the table cell menu, Home's document menu, the spelling suggestions) clamped to 4 px from the window top, and the table cell menu had no cap at all. Each now takes the menu bar's bottom edge as its floor (the window top when the bar is hidden for macOS system menus), the same cap and the hint, keeps opening at the pointer, and closes on window resize.
  • The browser demos are rebuilt and show 0.39.0.

Commits

  • fix(menus): bar menus and their submenus take a three-quarter cap and keep under the bar (0.39.0)
  • feat(menus): a cut-off menu shows a fade and a pill while rows remain below (0.39.0)
  • fix(menus): right-click menus keep under the menu bar, take the cap and show the hint (0.39.0)
  • chore(release): 0.39.0, menus keep under the menu bar with a three-quarter cap and a more-below hint

Version

v0.39.0 (release commit is last). Bumped from 0.38.1: README.md (badge and line), backend/app/__init__.py, frontend/package.json, the two own-version fields of frontend/package-lock.json, frontend/src/version.ts, src-tauri/Cargo.toml, formtxt's own entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json (formcompiler's version.file), the current build version in frontend/HASHOUT_LOG.md and backend/HASHOUT_LOG.md, and a CHANGELOG.md section. The three demo bundles (demo, demos/paper, demos/newsletter) were rebuilt with npm run demo.

Checks

  • tsc --noEmit: clean after each code commit.
  • npm run build (tsc and vite build) on the release commit: passed.
  • npm run demo: built all three demos, each bundle carries 0.39.0 and the hint.
  • Headless Chrome on the rebuilt demo/ page, CPU slowed 4 times, every bar menu (File, Edit, View, Insert, Format, Tools, Table, Window, Help). Bar bottom edge 33.5 px.
    • 1280x800: every menu's top was 38 in every frame while it opened. The six long menus were 600 px tall (75% of 800), bottom 638, hint on, pill opacity 1; at the last row the hint was off and the pill at opacity 0. Edit, Window and Help (233, 220 and 250 px) fit and had no hint.
    • 1000x480: the same, with the long menus 360 px tall (75% of 480), bottom 398.
  • The table cell right-click menu (the longest point menu, 18 entries, 438 px when it fits), demo/index.html opened from file://, 4x CPU, right-clicked in a table cell:
    • 1280x800: top 358, 438 tall, bottom 796, no hint (it fits).
    • 1871x1080: top 612 or 638, 438 tall, bottom 1050 or 1076, no hint.
    • 1000x480: top 116, 360 tall, bottom 476, hint on and pill opacity 1; at the last row the hint was off.
    • The lowest top in any frame while it opened matched the final top every time. A right-click on a cell scrolled to the very top of the page area opened no menu, with or without this change.
  • DOM law: verified under 4x CPU throttling for placement and size (lowest top in every frame equals the final top). No network throttling was applied (the demo loads from disk).

Not run: the existing window test (frontend/tests/window), because the engine's Python packages are not installed here; the backend suite; a before measurement on an origin/main build; the sizes 1871x1080 and 800x320 for bar menus, and 1280x720; submenus measured on their own; the hint timings (part way at about 80 ms, gone by 380 ms, back by 750 ms) and whether the pill is at full opacity in the very first painted frame; End and Home (the menus have no End or Home key handling, before or after); arrowing through a cut-off menu to check the focused row stays out of the fade; reduced motion; the ribbon and Quick Access Toolbar right-click menu, Home's document menu and the spelling suggestions in a browser; the paper and newsletter demos in a browser, and the version each demo shows (only the bundles were searched for 0.39.0); any desktop (Tauri) build, macOS, Windows or Linux.

Merging

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

… keep under the bar (0.39.0)

The bar and ribbon drop-downs capped at the room below with a 160 px minimum, and submenus clamped to the window top, so a long submenu could cover the menu bar. The drop-down keeps its top as the floor and caps at menuCap(y); openBeside caps at menuCap(floor) before measuring and never goes above the floor.
… below (0.39.0)

The rows move into their own scroller inside the card, so the mask fades them into the card and not its border. The hint is set while the menu is still hidden, so it never fades in on opening; it fades out in 160 ms at the last row and back in over 490 ms.
…nd show the hint (0.39.0)

The ribbon and Quick Access Toolbar menu, the table cell menu, Home's document menu and the spelling suggestions clamped their top to 4 px from the window top, and the table menu had no cap at all, so a long one could cover the menu bar. Each now takes the menu bar's bottom as its floor and the three-quarter cap before measuring, shows the more-below hint, keeps opening at the pointer and closes when the window is resized.
…arter cap and a more-below hint

Version sites, as 0.38.0 did them: README.md (badge and line),
backend/app/__init__.py, frontend/package.json, frontend/package-lock.json
(the project's two fields), frontend/src/version.ts, src-tauri/Cargo.toml,
src-tauri/Cargo.lock (formtxt's own version), src-tauri/tauri.conf.json,
the current build version in backend/HASHOUT_LOG.md and
frontend/HASHOUT_LOG.md, and the CHANGELOG entry, which also covers the
third-party notices and the shared agent finder merged after 0.38.1. The
three browser demos (demo, demos/paper, demos/newsletter) are rebuilt by
npm run demo and carry 0.39.0.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 22:28
@nodemode-ai
nodemode-ai merged commit 5a16578 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.39.0 branch November 30, 2026 22:37
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