Replies: 2 comments 3 replies
-
It would be handy to have |
Beta Was this translation helpful? Give feedback.
0 replies
-
Does Tailwind 1.9.0 answers part of this? See https://blog.tailwindcss.com/tailwindcss-1-9 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I love the new Grid utilities, but I find myself needing to size individual rows or columns automatically based on their content very often, which doesn't seem possible with the default utilities. Both
grid-rows-*
andgrid-cols-*
useminmax(0, 1fr)
for the size of the rows/columns, which means they are all the same size (based on the content of the largest row/column). This is a good default for traditional grid layouts (usinggrid-cols-12
to emulate Bootstrap for instance), but I find it just as useful to be able to have differently sized columns. And for rows, actually I feel like more often than not you want each row to have its own height based on its own content. For these reasons it would be nice to have the exact same utilities with a size ofauto
instead ofminmax(0, 1fr)
. I have no idea what they could be called though; it almost feels likegrid-rows-4
should already work like that by default, but that would be a breaking change. So I'd suggest using custom properties to change the size of explicit rows/columns. For instance:Beta Was this translation helpful? Give feedback.
All reactions