Commit c063059
committed
fix: tables were stretched to the column, inflating every cell
`width: 100%` forces a table to fill whatever holds it, and auto layout
then hands the surplus to every column in proportion. A three-column table
holding a date, a short code and a name came out at 216, 139 and 143px —
widths that have nothing to do with the content and read as arbitrary, or
as though the columns were fixed.
Sized to content instead, capped at the column. Where one column really is
long it still takes everything left: on a release page No. sits at 52px and
Script Name at 676px, filling the full 730px. Where the whole table is
small it now stops early — that same three-column table is 389px, and an
Application Name / Version pair 246px instead of 500.
The wrapper hugs the table too, or a small table would sit in a large
empty bordered box.
Verified on a page and in the editor preview, which lays out the same
table in 500px: No. 52px in both, nothing clipped, no table scrolling
sideways and no horizontal overflow on the page. All 14 tests pass.1 parent 4468ac6 commit c063059
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
190 | 197 | | |
191 | 198 | | |
192 | 199 | | |
193 | 200 | | |
194 | 201 | | |
195 | 202 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
| |||
0 commit comments