Unpopular opinion: I dropped auto-fit and minmax for my dashboard and went back to explicit grid-template-areas | CSS Grid Tricks - The Design Community Hub
Unpopular opinion: I dropped auto-fit and minmax for my dashboard and went back to explicit grid-template-areas
Spent 6 months on auto-fit with minmax(240px, 1fr) for a 12-card analytics dashboard in Denver and it kept reflowing into 5 awkward columns at 1100px wide, so last month I hardcoded grid-template-areas with a media query at 768px and 1024px and got predictable layouts in an afternoon, has anyone else given up on the auto-fit magic or am I just bad at tuning it?
Ha, yes! I feel this in my bones. Auto-fit looks so clean in the demos and then you throw real content at it and it does whatever it wants. I had the same thing happen where it kept going 5 across and squeezing cards until the labels wrapped weird. Hardcoded areas plus two breakpoints took me like an hour and it just works now. Sometimes the boring answer is the right one.