Repository navigation
fix(agent): keep MCP server descriptions inside the dialog - #1168
Merged
AnthonyRonning merged 1 commit intoOct 19, 2026
Merged
AnthonyRonning merged 1 commit into
AnthonyRonning merged 1 commit into
Conversation
The MCP servers dialog's content column grew to the width of the longest unwrapped server description, pushing the description text, row controls and the Add custom server button past the dialog's edge. Constrain the dialog's grid column with minmax(0, 1fr) so it can shrink to the dialog width, and wrap server descriptions to two lines to match the MCP picker menu.
AnthonyRonning
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
What this PR adds
Scroll sideways to compare. Click an image for full size.
Details for reviewers (cause, change, tests)
Cause.
DialogContentis a CSS grid with an implicitautocolumn. The server row's description usedtruncate(white-space: nowrap), so the row's min-content width was the full description length. The grid column grew to that width instead of the dialog'smax-w-3xl, and the header description, row controls and footer overflowed with it.min-w-0on the row's text block doesn't help, because the grid item above it still hasmin-width: auto.Change (
apps/maple-research/frontend/src/components/agent/AgentMcpControls.tsx, 2 lines):AgentMcpServersDialog: addgrid-cols-[minmax(0,1fr)]toDialogContent, so the column can shrink to the dialog width. This covers both the server list and the add/edit form.McpServerGroup: descriptiontruncate→line-clamp-2, matchingAgentMcpMenu.Tests.
AgentMcpServersDialogwith the app's stylesheet in Playwright WebKit and Chromium at 1280×800, before and after, in light and dark. Content width inside the 768 px dialog: before 1245 px in both engines; after 768 px, with the description on 2 lines.bun run format:check,bun run typecheck,bun run build:fast: pass.bun test: 1344 pass, 0 fail. ESLint on the changed file: clean.Need help on this PR? Tag
@codesmith-botwith what you need.