Commit c3c3ae4
committed
Fix shuffle dropping a past contributor on every page load
The Fisher-Yates shuffle in the past-contributors section redistributed
cards at a hardcoded 3-per-row across 2 rows, giving 6 slots for 7 cards
and silently dropping whichever card landed at index 6. Laurent Soucasse
was already in the source but vanished about 1-in-7 page loads (the same
held for any of the other 6 cards).
Compute per-row capacity as ceil(totalCards / numRows) so all cards
always render. Bootstrap .col-lg-4 wraps a 4th column onto a second
visual line within the same .row, so the layout stays clean.1 parent 15ff845 commit c3c3ae4
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
1340 | | - | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1341 | 1344 | | |
1342 | 1345 | | |
1343 | | - | |
| 1346 | + | |
1344 | 1347 | | |
1345 | 1348 | | |
1346 | 1349 | | |
| |||
0 commit comments