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:
@@ -484,7 +484,7 @@
|
|||||||
@apply grid grid-cols-2 gap-3 mb-8;
|
@apply grid grid-cols-2 gap-3 mb-8;
|
||||||
}
|
}
|
||||||
@media (min-width: 640px) {
|
@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 {
|
.stats-strip__item {
|
||||||
@apply bg-soft-white border border-light-gray rounded-lg p-4;
|
@apply bg-soft-white border border-light-gray rounded-lg p-4;
|
||||||
|
|||||||
Reference in New Issue
Block a user