Skip to content

Commit 52cd8bb

Browse files
committed
fix(ui): let standard menu appearance scroll as well as compact
Menu surfaces with appearance="standard" set overflow: hidden, which beat the clamp applied to the base content rule, so long standard menus (servers registry, MCP dialog, windows titlebar menu, project view, side region) were capped at the available height but could not scroll — the overflow was still unreachable. Switch that declaration to overflow-x: hidden so the rounded border still clips while the vertical axis follows the content rule. Also select one of the generated ids in the LongList story so the selected agent is the one scrolled into view. Refs #54374
1 parent a67842f commit 52cd8bb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎packages/ui/src/navigation/menu/menu.css‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@
192192
[data-component="menu-v2-content"][data-appearance="standard"] {
193193
min-width: 8rem;
194194
padding: 4px;
195-
overflow: hidden;
195+
/* Keep clipping for the rounded border, but leave the vertical axis to the
196+
content rule above so long standard menus scroll instead of hiding items. */
197+
overflow-x: hidden;
196198
border: 1px solid color-mix(in oklch, var(--border-base) 50%, transparent);
197199
border-radius: var(--radius-md);
198200
background: var(--surface-raised-stronger-non-alpha);

‎packages/ui/src/navigation/menu/menu.stories.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export const WithRadio = {
165165

166166
export const LongList = {
167167
render: () => {
168-
const [agent, setAgent] = createSignal("ehealthwares-marketing")
168+
const [agent, setAgent] = createSignal("agent-28")
169169
const agents = Array.from({ length: 32 }, (_, index) => `agent-${index + 1}`)
170170

171171
return (

0 commit comments

Comments
 (0)