From 1e1cf751ab9c77f1245d45c6492a00dca00dda5d Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Mon, 30 Nov 2026 16:09:08 -0500 Subject: [PATCH 1/2] feat: long right-click menus stay in the window, scroll, and show a more-below hint Menus opened at a point (right-click, Sort, Quick filters, share and album actions) are capped at three quarters of the window before they are measured, never start above the window top, and keep opening at the pointer. The rows scroll inside the glass card, and a fade with a small pill shows while rows remain below. The menu closes when the window is resized. --- frontend/HASHOUT_LOG.md | 22 ++++++++++++++++++++++ frontend/src/styles/app.css | 12 ++++++++++-- frontend/src/ui/contextmenu.ts | 33 ++++++++++++++++++++++++++++----- 3 files changed, 60 insertions(+), 7 deletions(-) diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index d0be390..b9c6178 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -1,5 +1,27 @@ # frontend HASHOUT_LOG · formDAM current: v1.27.7 · 2026-10-25 +### ui/contextmenu.ts · menus opened at a point keep to the window, take a cap and show the more-below hint +- refers-to: contextmenu.ts MENU_SHARE, MENU_PAD, menuCap, MORE_SVG, openContextMenu (list, more, showMore, placement, resize dismiss); styles/app.css .ctx-menu, @property --menu-more, .ctx-menu-list, .ctx-menu-more, .has-more, .no-fade +- kind: fix +- logged: v1.33.0 · 2026-11-30 + +FORM-MENU-OVERLAP-FIX guide 1.2.0, section 3b (group D: formDAM has no in-window menu bar, so the floor is the window top, 4 px). Every right-click menu, and every menu opened at a point or under a toolbar button (Sort, Quick filters, album and output actions, share), goes through openContextMenu, so the one routine carries the fix. Before, there was no cap: a menu taller than the window was placed at innerHeight - h - 8, which went negative, so its top rows sat above the window and could not be reached. Callers that pass rect.top - 230 or rect.top - 160 could also place a menu above the window. Now the card gets an inline max-height of menuCap(4) = min(75% of innerHeight, innerHeight - 8) while still visibility: hidden, then its left and top are clamped to at least 4 px; the pointer-corner placement (at the point, slid left or up to stay inside) is unchanged. The rows moved into .ctx-menu-list, which scrolls and carries the mask; the card keeps the glass and adds overflow: hidden. The pill (.ctx-menu-more) uses --glass-bg, --glass-border and --text-muted. showMore(true) sets has-more under no-fade before the first paint, so a long menu opens with the hint and never fades it in; the list's scroll runs showMore(). The menu now also closes on window resize, so its cap follows the window. Nothing outside this file reads the menu's children or scrollTop. + +Removed lines: + +```ts + const menu = h("div", { class: "ctx-menu pop-surface" }); + menu.append(h("div", { class: "ctx-sep" })); + menu.append(item); + menu.style.left = `${Math.min(x, window.innerWidth - rect.width - 8)}px`; + menu.style.top = `${Math.min(y, window.innerHeight - rect.height - 8)}px`; +``` + +```css + display: flex; flex-direction: column; gap: 1px; +``` + +The 1 px row gap moved to .ctx-menu-list. The filter popover in the library top bar (.menu in library.ts, 12 rows, placed by CSS under its button) was left as it is: it is not opened at a point. ### ui/components/plaincopies.ts · Settings > Vault: plain copies of protected items - refers-to: plaincopies.ts (new) plainCopiesPanel, confirmMove; settings.ts vault pane; styles/app.css .plain-copies, .plain-copy, .plain-copy-path - kind: feature diff --git a/frontend/src/styles/app.css b/frontend/src/styles/app.css index 32a6da8..31696a4 100644 --- a/frontend/src/styles/app.css +++ b/frontend/src/styles/app.css @@ -512,8 +512,16 @@ html.route-collections .content > .view { transform: translateZ(0); } .ctx-menu { position: fixed; z-index: var(--z-popover); min-width: 200px; padding: 5px; - display: flex; flex-direction: column; gap: 1px; -} + display: flex; flex-direction: column; overflow: hidden; +} +@property --menu-more { syntax: ''; inherits: false; initial-value: 0; } +.ctx-menu-list { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; --menu-more: 0; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - min(88px, 40%)), rgb(0 0 0 / calc(1 - var(--menu-more))) calc(100% - min(22px, 10%))); mask-image: linear-gradient(to bottom, #000 calc(100% - min(88px, 40%)), rgb(0 0 0 / calc(1 - var(--menu-more))) calc(100% - min(22px, 10%))); transition: --menu-more 160ms ease-out; } +.ctx-menu-more { position: absolute; left: 50%; bottom: 6px; width: 56px; height: 12px; margin-left: -28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass-bg); color: var(--text-muted); pointer-events: none; opacity: 0; transition: opacity 160ms ease-out; } +.ctx-menu-more svg { width: 12px; height: 8px; } +.ctx-menu.has-more > .ctx-menu-list { --menu-more: 1; scroll-padding-block-end: min(88px, 40%); transition-duration: 490ms; } +.ctx-menu.has-more > .ctx-menu-more { opacity: 1; transition-duration: 490ms; } +.ctx-menu.no-fade > .ctx-menu-list, .ctx-menu.no-fade > .ctx-menu-more { transition: none; } +@media (prefers-reduced-motion: reduce) { .ctx-menu-list, .ctx-menu-more { transition: none; } } .ctx-item { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--text); text-align: left; width: 100%; } .ctx-item .icon { --icon-size: 15px; color: var(--text-muted); } .ctx-item:hover { background: var(--accent-soft); color: var(--accent); } diff --git a/frontend/src/ui/contextmenu.ts b/frontend/src/ui/contextmenu.ts index 9c3fbb0..3c37a21 100644 --- a/frontend/src/ui/contextmenu.ts +++ b/frontend/src/ui/contextmenu.ts @@ -11,6 +11,10 @@ export interface CtxItem { export type CtxEntry = CtxItem | "sep"; +const MENU_SHARE = 0.75, MENU_PAD = 4; +const menuCap = (top: number): number => Math.max(0, Math.min(Math.floor(window.innerHeight * MENU_SHARE), Math.floor(window.innerHeight - top - MENU_PAD))); +const MORE_SVG = ''; + let current: HTMLElement | null = null; export function closeContextMenu(): void { @@ -20,10 +24,23 @@ export function closeContextMenu(): void { export function openContextMenu(x: number, y: number, entries: CtxEntry[]): void { closeContextMenu(); - const menu = h("div", { class: "ctx-menu pop-surface" }); + const list = h("div", { class: "ctx-menu-list" }); + const more = h("div", { class: "ctx-menu-more", "aria-hidden": "true" }); + more.innerHTML = MORE_SVG; + const menu = h("div", { class: "ctx-menu pop-surface" }, list, more); + const showMore = (instant = false): void => { + const rest = list.scrollHeight - list.clientHeight - list.scrollTop > 1; + if (instant) menu.classList.add("no-fade"); + menu.classList.toggle("has-more", rest); + if (instant) { + void getComputedStyle(more).opacity; + menu.classList.remove("no-fade"); + } + }; + list.addEventListener("scroll", () => showMore(), { passive: true }); for (const entry of entries) { if (entry === "sep") { - menu.append(h("div", { class: "ctx-sep" })); + list.append(h("div", { class: "ctx-sep" })); continue; } const item = h("button", { class: `ctx-item${entry.danger ? " danger" : ""}${entry.selected ? " selected" : ""}`, type: "button" }, @@ -33,12 +50,16 @@ export function openContextMenu(x: number, y: number, entries: CtxEntry[]): void closeContextMenu(); entry.action(); }); - menu.append(item); + list.append(item); } + menu.style.visibility = "hidden"; + menu.style.maxHeight = `${menuCap(MENU_PAD)}px`; document.body.append(menu); const rect = menu.getBoundingClientRect(); - menu.style.left = `${Math.min(x, window.innerWidth - rect.width - 8)}px`; - menu.style.top = `${Math.min(y, window.innerHeight - rect.height - 8)}px`; + menu.style.left = `${Math.max(MENU_PAD, Math.min(x, window.innerWidth - rect.width - 8))}px`; + menu.style.top = `${Math.max(MENU_PAD, Math.min(y, window.innerHeight - rect.height - 8))}px`; + showMore(true); + menu.style.visibility = ""; current = menu; const dismiss = (event: Event) => { @@ -48,8 +69,10 @@ export function openContextMenu(x: number, y: number, entries: CtxEntry[]): void window.removeEventListener("pointerdown", dismiss, true); window.removeEventListener("keydown", dismiss, true); window.removeEventListener("blur", dismiss); + window.removeEventListener("resize", dismiss); }; window.addEventListener("pointerdown", dismiss, true); window.addEventListener("keydown", dismiss, true); window.addEventListener("blur", dismiss); + window.addEventListener("resize", dismiss); } From 029d37738cbf5394850b82b6857c2935f62922c9 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Mon, 30 Nov 2026 16:09:28 -0500 Subject: [PATCH 2/2] chore(release): v1.33.0 --- BUILD_NOTES.md | 4 ++++ README.md | 2 +- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/BUILD_NOTES.md b/BUILD_NOTES.md index 8aad9dd..8b51db2 100644 --- a/BUILD_NOTES.md +++ b/BUILD_NOTES.md @@ -1,5 +1,9 @@ # formDAM build notes +## v1.33.0 (2026-11-30) · long right-click menus stay in the window and show a more-below hint + +A right-click menu, or any menu opened at a point or under a toolbar button, is at most three quarters of the window tall, never starts above the window top, and scrolls the rest; a fade and a small pill at its bottom show while rows remain below. Before, a menu taller than the window started above it and its first rows could not be reached. It still opens at the pointer. This release also carries everything merged since 1.32.4: audio, Form projects, documents, 3D models and design resources in the library, clean PDF copies, referenced originals moving into the vault, plain-copy cleanup and the third-party notices. Detail in `frontend/HASHOUT_LOG.md`. + ## v1.32.4 (2026-11-27) · the Linux AppImage is built 1.32.3 still shipped the deb alone. Its AppImage step looked for the engine's missing libraries before the step ran, found none, and so changed nothing; the library only goes missing once the AppImage tool has moved a file that needs it. `setup/build_linux_app` now shows the tool every library folder of the engine. A full Linux build of this script made the AppImage, and the engine inside it passes its self-check. Nothing in the app, the engine or the macOS and Windows builds changed from 1.32.0. Detail in `src-tauri/HASHOUT_LOG.md`. diff --git a/README.md b/README.md index 5969213..b2cb0e2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

- version 1.32.4 + version 1.33.0 Python FastAPI macOS, Windows, Linux License: Apache-2.0 diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 8cb3b13..daa0711 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "formdam-frontend", - "version": "1.32.4", + "version": "1.33.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "formdam-frontend", - "version": "1.32.4", + "version": "1.33.0", "dependencies": { "lottie-web": "5.12.2" }, diff --git a/frontend/package.json b/frontend/package.json index e8c9913..ea2856e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "formdam-frontend", "private": true, - "version": "1.32.4", + "version": "1.33.0", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index fb1cbc6..6c6315c 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1099,7 +1099,7 @@ dependencies = [ [[package]] name = "formdam-desktop" -version = "1.32.4" +version = "1.33.0" dependencies = [ "block2", "keyring", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index b32fbfc..a0f93a9 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "formdam-desktop" -version = "1.32.4" +version = "1.33.0" description = "formDAM: local-first digital asset manager for photos & video" edition = "2021"