Events: webhook subscription card's copy-secret button is clipped at 1280px with the sidebar open; focusing it scrolls the panel sideways
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 76/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- react, typescript
调研方向
从EventSubscriptionCard开始,沿着 Secret 的DetailRow追踪到WebhookSecretField,尤其检查被遮蔽的Code及其Group。在 Monitor 侧边栏打开的情况下,以 1280×900 复现,然后检查布局和焦点行为。完成标准是 Secret 行能容纳在卡片内,复制按钮保持可见,并且聚焦该按钮不会使面板横向滚动。
由索引模型根据 Issue 内容生成。
描述
Problem
On the Events tab, a webhook subscription card's Secret row is wider than the Subscriptions column at a common window size. At 1280×900 with the Monitor sidebar open at its default width, the card's content is 282px wide inside a 231px column. The copy-secret button lands at x=826–854, past the edge of the column's ScrollArea viewport (572–805), so it is clipped out of view.
That has two visible effects:
- A mouse user can't see the copy button, so can't click it. A click at its coordinates lands outside the card, and the clipboard stays empty.
- A keyboard user who tabs to it shifts the whole panel sideways. The ScrollArea viewport (
overflow-x: hidden) is scrolled programmatically to bring the focused button into view:scrollLeftgoes 0 → 50. That clips the card's left edge ("ent.created", "ook", "ents") and leaves it that way.
The 2.18.0 release smoke recorded only effect 2. Playwright's click scrolls the target into view first, which made it look like the click itself caused the shift.
Reproduce (2.18.0, production build)
node test-servers/build/server-composable.js --config test-servers/configs/events-modern-http.jsonmcp-inspector --web --webhook-public-address https://demo-tunnel.example.com, connect to it with Protocol Era = Modern, then open Events.- Pick
incident.created, choose Webhook, click Use the Inspector's receiver, then Subscribe. - At a 1280px-wide window with the Monitor sidebar open, the subscription card's Secret row runs past the card's right edge and the copy button is not visible. Tab to it (or
element.focus()it): the Subscriptions panel scrolls sideways.
| Width | Card content / column | Copy button | Result |
|---|---|---|---|
| 1280 | 282 / 231 px | 826–854, column ends 805 | clipped; focusing it scrolls the panel |
| 1600 | 418 / 418 px | 960–988 | fine |
| 1920 | 605 / 605 px | 1093–1121 | fine |
Before focus (copy button clipped off the right edge):
After focusing the copy button (panel scrolled sideways, left edge clipped):
Expected
The Secret row fits the card at any column width the layout allows. The copy control is always visible and never makes its container scroll.
Likely cause
In EventSubscriptionCard, the Secret DetailRow is wrap: "nowrap". Unlike DetailValue, its child, WebhookSecretField (<Code> with the masked secret + CopyButton, in a nowrap Group), has no miw: 0 and no truncation. So it can't shrink, and it pushes the row wider than the card. Making the masked Code shrinkable/truncating (or letting the row wrap), so the copy button stays inside the card, should fix both effects.
Workaround
Widen the window or narrow the Monitor sidebar. The subscribe form's own Signing secret copy button, used before subscribing, is unaffected.
Found in the 2.18.0 release smoke (ledger note, "Cosmetic … Not reproduced deliberately") and reproduced deliberately afterwards.
- 主要语言
- TypeScript
- 星标
- 11.4k
- 派生
- 1.6k
- 平均合并
- 2 小时 27 分钟
- 30 天内合并 PR
- 121
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/inspector 的其他 Issue
-
documentation v2
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/inspector#3139 · 1 条评论 ·
维护者通常 1 天内回复
-
bug v2
难度 2/5 1-3 小时 新手友好度 67/100
modelcontextprotocol/inspector#3133 · 2 条评论 ·
维护者通常 1 天内回复
-
bug v2
难度 1/5 1 小时以内 新手友好度 86/100
modelcontextprotocol/inspector#3132 · 1 条评论 ·
维护者通常 1 天内回复
-
bug v2
难度 2/5 1-3 小时 新手友好度 80/100
modelcontextprotocol/inspector#3131 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
modelcontextprotocol/inspector#3111 ·
维护者通常 1 天内回复
查看 modelcontextprotocol/inspector 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 95/100
amosblomqvist/learnharness#1141 ·
维护者通常 4 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
ranxianglei/billion-context#8319 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
tencent-connect/dsh-qqbot#148 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
JimLiu/open-artifact#126 ·
-
难度 2/5 1-3 小时 新手友好度 78/100