[Feature Proposal]: Add "max-height" utilities similar to existing "max-width" options #1374
soullivaneuh
started this conversation in
Ideas
Replies: 2 comments
-
You can use the height on the parent and then use max-height in the child.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
In that case the parent will occupy more space than intended if the child is shorter than 16rem. |
Beta Was this translation helpful? Give feedback.
0 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.
-
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:
Beta Was this translation helpful? Give feedback.
All reactions