Commit e735676
ui: remove flex:1 from base .btn (was a CSS landmine)
Previous fix scoped the override to .mcp-key-item .btn — works but
adds tech debt for every future button in a flex container. Audit
showed:
- Only ONE place actually wants .btn { flex: 1 }: .camera-controls
(Record + Snapshot split-even).
- Multiple places are silently HARMED by it:
- .modal-actions has justify-content: flex-end which gets
defeated (buttons should hug right; were stretching)
- .upgrade-actions has justify-content: center, also defeated
- .notif-panel-actions had buttons stretching across the panel
- .mcp-key-item Revoke button (the one Sb spotted)
- Landing pages use .landing-btn (separate class), unaffected.
Fix: move flex:1 from base .btn to a scoped .camera-controls .btn
rule, drop the per-place override I just added on .mcp-key-item.
Net result: modals + upgrade dialogs + notification panel + MCP keys
list all improve simultaneously, camera card stays the same.
Defensive comment added on the .btn block warning future maintainers
not to add flex:1 back without thinking through the bleed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent af86405 commit e735676
1 file changed
Lines changed: 16 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | | - | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1091 | 1095 | | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
1092 | 1107 | | |
1093 | 1108 | | |
1094 | 1109 | | |
| |||
3738 | 3753 | | |
3739 | 3754 | | |
3740 | 3755 | | |
3741 | | - | |
3742 | | - | |
3743 | | - | |
3744 | | - | |
3745 | | - | |
3746 | | - | |
3747 | | - | |
3748 | | - | |
3749 | | - | |
3750 | | - | |
3751 | 3756 | | |
3752 | 3757 | | |
3753 | 3758 | | |
| |||
0 commit comments