Commit d0a50e0
authored
Compare: align action chips and give them breathing room (#164)
Several inline action chips landed flush against their neighbouring
text — "Metric Switch", "Waterfall ", "HAR1 Upload", and the
disclosure arrows on rows like "CPU time spent by category" — so
visually it read as one crowded blob rather than a label with a
separate action you could aim at. The page-x-ray metric column
also had the awkward case where "Switch" stayed on the title line
and "Only differences" wrapped underneath at a different left
edge, which looked broken.
Card titles become flex containers so inline chips sit at a
consistent gap and centre-align with the heading instead of
hugging its baseline. The chip-toggle, submit-smaller and Upload
label each pick up a small left margin so they're never flush
against preceding content, reset inside flex parents where gap
does the work.
The metric column header now stacks "Metric" on top of a flex row
that holds Switch + Only differences together, so the chips wrap
as a group and stay aligned with each other. A small negative
left margin on that row pulls the buttons left by the width of
their own border + padding so the visible text edge of "Switch"
lines up with "URL"/"Date"/"Browser" in the rows below.
Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com1 parent ff67055 commit d0a50e0
4 files changed
Lines changed: 67 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
203 | 211 | | |
204 | 212 | | |
205 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
68 | 97 | | |
69 | 98 | | |
70 | 99 | | |
| |||
101 | 130 | | |
102 | 131 | | |
103 | 132 | | |
104 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
105 | 138 | | |
106 | 139 | | |
107 | 140 | | |
| |||
112 | 145 | | |
113 | 146 | | |
114 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
115 | 151 | | |
116 | 152 | | |
117 | 153 | | |
| |||
213 | 249 | | |
214 | 250 | | |
215 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
216 | 256 | | |
217 | 257 | | |
218 | 258 | | |
| |||
0 commit comments