Skip to content

Commit 8e4e677

Browse files
donjor-agent[bot]donjor
authored andcommitted
fix(web): long context menus fit the window instead of scrolling (#1419)
Fork-Domain: upstream-fixes Fork-Tier: bugfix Fork-Upstreamable: yes Co-authored-by: donjor <[email protected]>
1 parent 7043061 commit 8e4e677

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎apps/web/src/index.fork.css‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@
1111
min-height: 100%;
1212
}
1313
}
14+
15+
/* upstream-fixes: the fallback context menu (contextMenuFallback.ts) caps its
16+
list at 24rem, so a long thread menu scrolls in any window. Let it use the
17+
viewport height instead; it still scrolls when the window is shorter. The
18+
list's own inline max-height needs `!important` to lose. */
19+
.dropdown-glass[data-level] > div {
20+
max-height: calc(100dvh - 0.5rem) !important;
21+
}

0 commit comments

Comments
 (0)