4 ms·
> Like the rule that you have to set min-width to 0 or something to get the desired behavior I understand why this is the case (mostly thanks to a patient HN c
by deergomoo 5y ago
> Like the rule that you have to set min-width to 0 or something to get the desired behavior
I understand why this is the case (mostly thanks to a patient HN commenter who explained it to me), but holy hell it annoys me how unintuitive it is. You have to set min-width to stop a flex child being too big? Get out of here with that nonsense.
The common wisdom seems to be that 1D layouts should use flex and 2D should use grid, but I don't think I agree with that. These days, I only ever use flex for layouts that should actually be flexible. Even if it's a single dimension, if it's fixed-widths it's straight to grid for me now, and my life is measurably better for it.