Skip to content

Contributors table: keep every row at seven cells - #2938

Open
GuoCheng24 wants to merge 1 commit into
github:mainfrom
GuoCheng24:fix-contributor-row-overflow
Open

Contributors table: keep every row at seven cells#2938
GuoCheng24 wants to merge 1 commit into
github:mainfrom
GuoCheng24:fix-contributor-row-overflow

Conversation

@GuoCheng24

Copy link
Copy Markdown
Contributor

The all-contributors table has 54 rows. Fifty-three carry seven <td> elements; the last carries eight.

Every cell is width="14.28%" — one seventh — so eight in a row sums past 100%. The result is that the final avatar renders visibly narrower than every other avatar on the page and is pushed beyond the table's edge, reachable only by scrolling the table horizontally.

Counting cells per row, before and after:

before:  54 rows, cells per row ∈ {7, 8}   ← one row with 8
after :  55 rows, cells per row ∈ {7, 1}   ← the 1 is the new trailing row

The fix moves that one cell onto its own row, which is where the next contributor would go anyway. Two added lines, no cell contents touched.

I noticed it because the eighth cell is mine, but the same thing will happen to whoever is added next unless the row is closed.

The last row carries eight <td> elements while all fifty-three others carry
seven. Each cell is fixed at width="14.28%" (one seventh), so eight of them
overflow the table: the final avatar renders narrower than the rest and sits
past the edge, reachable only by scrolling horizontally.

Moving that one cell onto its own row restores the invariant. Verified by
counting cells per row before and after: the distribution goes from {7, 8} to
{7, 1}, the 1 being the new trailing row that the next contributor fills.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant