Repository navigation
fix(menus): menus keep under the menu bar, take a three-quarter cap and show a more-below hint (0.39.0) - #20
Merged
Merged
Conversation
… 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.
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(menus): menus keep under the menu bar, take a three-quarter cap and show a more-below hint (0.39.0)
Summary
menuCap(y): at most 75% of the window and never past its bottom, set while the menu is still hidden.openBesidenow reads the root menu's floor, caps before measuring and never goes above the floor..ft-pm-listscroller inside the card so the mask does not fade the card's border. The hint is set before the first painted frame.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.Commits
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 offrontend/package-lock.json,frontend/src/version.ts,src-tauri/Cargo.toml, formtxt's own entry insrc-tauri/Cargo.lock,src-tauri/tauri.conf.json(formcompiler'sversion.file), the current build version infrontend/HASHOUT_LOG.mdandbackend/HASHOUT_LOG.md, and aCHANGELOG.mdsection. The three demo bundles (demo,demos/paper,demos/newsletter) were rebuilt withnpm 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.demo/page, CPU slowed 4 times, every bar menu (File, Edit, View, Insert, Format, Tools, Table, Window, Help). Bar bottom edge 33.5 px.demo/index.htmlopened fromfile://, 4x CPU, right-clicked in a table cell: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 anorigin/mainbuild; 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.