Skip to content

Commit af86405

Browse files
Sbussisoclaude
andcommitted
ui(mcp): stop Revoke button from stretching across the API Keys row
The base .btn { flex: 1 } class (intentional for hero CTA pairs and similar even-split layouts) was bleeding into the API Keys list, where the destructive Revoke button took up most of the row instead of sitting compact next to the key name and metadata. Scoped override (.mcp-key-item .btn { flex: 0 0 auto }) opts the button out of the flex-fill behavior in this specific context only. Other .btn placements that genuinely want even-split layout are unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 92fda87 commit af86405

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

frontend/src/index.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3738,6 +3738,16 @@ body {
37383738
border-radius: 8px;
37393739
}
37403740

3741+
/* Override the base .btn { flex: 1 } so the Revoke button sizes to
3742+
its content instead of stretching across the row. The base flex:1
3743+
is intentional for hero CTA pairs ("Get Started" / "Learn More")
3744+
and similar even-split layouts, but bleeds into every .btn placed
3745+
in a flex container. Scoped override here keeps both use cases
3746+
happy without ripping the global rule out. */
3747+
.mcp-key-item .btn {
3748+
flex: 0 0 auto;
3749+
}
3750+
37413751
.mcp-key-info {
37423752
display: flex;
37433753
flex-direction: column;

0 commit comments

Comments
 (0)