Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd max-h-[0-9-xl] utilities #1374
Open
Comments
You can use the height on the parent and then use max-height in the child.
|
In that case the parent will occupy more space than intended if the child is shorter than 16rem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basically, the same thing than that: https://tailwindcss.com/docs/max-width/#app
But for height.
I might add it on a tailwindcss config file, but I'm working on an open-source svelte library based on Tailwind, and I would keep the strict default config to be flexible.
This will be useful to set the max height of a dropdown. Currently, I have to do this: