feat(css): stats-strip auto-fit layout supports 4 or 5 metric items

Change from repeat(4, 1fr) to repeat(auto-fit, minmax(140px, 1fr)) so the
stats strip accommodates both 4-item (country overview) and 5-item (city
articles with opportunity score) layouts without breaking smaller widths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-26 20:08:37 +01:00
parent 7186d4582a
commit c6ce0aeaee

View File

@@ -484,7 +484,7 @@
@apply grid grid-cols-2 gap-3 mb-8;
}
@media (min-width: 640px) {
.stats-strip { grid-template-columns: repeat(4, 1fr); }
.stats-strip { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
.stats-strip__item {
@apply bg-soft-white border border-light-gray rounded-lg p-4;