on main help sign in
fix(stats): resizing breaks pie charts (#2030)

resizing the browser would "break" the pie charts, cutting them off Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

commitdaf786fe3df633bf146b5a3246866c173e9d8370 authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateWed 28 Jan 2026, 14:35 (9 months ago) parentde64b00
1 file changed+4−9
internal/cmd/stats/index.css+4−9
internal/cmd/stats/index.css+4−9
@@ -189,20 +189,15 @@ body {
189189}
190190
191191.chart-row {
192− display: grid;
193− grid-template-columns: repeat(2, 1fr);
192+ display: flex;
193+ flex-wrap: wrap;
194194 gap: 1.5rem;
195195 width: 100%;
196196}
197197
198198.chart-row .chart-card {
199− width: 100%;
200−}
201−
202−@media (max-width: 1024px) {
203− .chart-row {
204− grid-template-columns: 1fr;
205− }
199+ flex: 1 1 300px;
200+ max-width: calc((100% - 1.5rem) / 2);
206201}
207202
208203.chart-card h2 {