mirror of
https://github.com/tiennm99/ghstats.git
synced 2026-05-17 10:59:04 +00:00
dedce3da73
Cells were 4 × 4 with 1 px gap: the grid used 35 of 140 available vertical pixels (25 %) and ~80 px of dead space below. Widening the cells isn't an option — 53 weeks already consume every horizontal pixel past the weekday-label gutter. So stretch vertically instead: cellW = 4 (unchanged) cellH = 12 cellGap = 1 Grid footprint is now 265 × 91 px inside a 340 × 200 frame, with a 32 px gap below the grid for the legend. Each weekday reads as a distinct horizontal band instead of a cramped postage-stamp row. Legend keeps 8 × 8 SQUARE swatches so the "Less ▢▢▢▢▢ More" row is still recognisable as an intensity legend rather than a stretched echo of the data cells. Label baseline offset switches from `cellSize - 1` to `cellH - 3` so "Mon"/"Wed"/"Fri" sit visually centred in the taller rows.