Events: webhook subscription card's copy-secret button is clipped at 1280px with the sidebar open; focusing it scrolls the panel sideways

Ouverte Adaptée aux débutants
#3,136 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
76/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
react, typescript

Piste de recherche

Commencez dans EventSubscriptionCard et suivez le DetailRow Secret jusqu’à WebhookSecretField, en particulier le Code masqué et son Group. Reproduisez le problème en 1280×900 avec la barre latérale Monitor ouverte, puis examinez la mise en page et le comportement du focus. Le travail est terminé lorsque la ligne Secret tient dans sa carte, que le bouton de copie reste visible et que son focus ne fait pas défiler le panneau horizontalement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

bug v2

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:

  1. 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.
  2. 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: scrollLeft goes 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)

  1. node test-servers/build/server-composable.js --config test-servers/configs/events-modern-http.json
  2. mcp-inspector --web --webhook-public-address https://demo-tunnel.example.com, connect to it with Protocol Era = Modern, then open Events.
  3. Pick incident.created, choose Webhook, click Use the Inspector's receiver, then Subscribe.
  4. 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):

copy button clipped

After focusing the copy button (panel scrolled sideways, left edge clipped):

panel scrolled sideways

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.

Langage dominant
TypeScript
Étoiles
11.4k
Forks
1.6k
Merge moyen
2 h 27 min
PR mergées (30 j)
121

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de modelcontextprotocol/inspector

Toutes les issues de modelcontextprotocol/inspector

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.