fix(ui): resolve MCP promo banner dismiss button overlap#581
fix(ui): resolve MCP promo banner dismiss button overlap#581shadowfax92 merged 1 commit intomainfrom
Conversation
Move dismiss button from absolute positioning to inline flex child, preventing it from overlapping with the "Set up" button.
|
@greptileai review |
|
@claude review |
|
Claude finished @shadowfax92's task in 40s —— View job Code Review
LGTM. This is a clean, minimal fix for the layout issue. What changed (
No issues found:
Minor nit (optional): The X button has no |
Greptile SummaryThis PR fixes a layout bug in Confidence Score: 5/5Safe to merge — single-file layout fix with no logic changes or regressions. The change is a two-line CSS class swap that correctly resolves the described overlap bug. The before/after layout is easy to reason about: removing No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["McpPromoBanner renders"] --> B{"dismissed?"}
B -- "true" --> C["return null"]
B -- "false" --> D["Flex row: gap-4, items-center"]
D --> E["Server icon (shrink-0)"]
D --> F["Text content (flex-1, min-w-0)"]
D --> G["Set up Button (shrink-0)"]
D --> H["X dismiss button (shrink-0) moved inline"]
H -- "onClick" --> I["setDismissed(true)"]
I --> C
G -- "onClick" --> J["track() + navigate('/settings/mcp')"]
Reviews (1): Last reviewed commit: "fix(ui): resolve MCP promo banner dismis..." | Re-trigger Greptile |
Summary
relativefrom container since no absolute-positioned children remainTest plan