Events: webhook subscription card's copy-secret button is clipped at 1280px with the sidebar open; focusing it scrolls the panel sideways
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, typescript
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
Bắt đầu từ EventSubscriptionCard và lần theo DetailRow Secret đến WebhookSecretField, đặc biệt chú ý Code bị che và Group của nó. Tái hiện ở độ phân giải 1280×900 khi thanh bên Monitor đang mở, sau đó kiểm tra bố cục và hành vi khi lấy tiêu điểm. Hoàn tất khi hàng Secret nằm gọn trong thẻ, nút sao chép vẫn hiển thị và việc lấy tiêu điểm nút không làm bảng cuộn ngang.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 11.4k
- Fork
- 1.6k
- Merge trung bình
- 2 giờ 27 phút
- Pull request đã merge (30 ngày)
- 121
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/inspector
-
documentation v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/inspector#3139 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
modelcontextprotocol/inspector#3133 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug v2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
modelcontextprotocol/inspector#3132 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
modelcontextprotocol/inspector#3131 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
modelcontextprotocol/inspector#3111 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của modelcontextprotocol/inspector
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
amosblomqvist/learnharness#1141 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ranxianglei/billion-context#8319 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
tencent-connect/dsh-qqbot#148 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
JimLiu/open-artifact#126 ·
-
redis.expireTime() returns relative TTL seconds on live host instead of Unix timestamp secondsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100