ScrollArea: child with flex display not taking 100% height #5826
Replies: 4 comments 2 replies
-
Add a div element inside scroll area that will be a flex container |
Beta Was this translation helpful? Give feedback.
-
Tailwind added support for styling the children: https://tailwindcss.com/blog/tailwindcss-v3-4#style-children-with-the-variant |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same problem.
After you can hang space-between on the internal Flex. Other methods have not solved the problem so far. |
Beta Was this translation helpful? Give feedback.
-
Did you resolve it? I needed to use just a div with overflow-auto instead scrollarea and it works. |
Beta Was this translation helpful? Give feedback.
-
I am using ScrollArea element like this -
Because the deepest element of ScrollArea component is a
div
withdisplay: table
, the flex is not growing to take up empty space. The only fix I could find was to addheight: 100%
to the deepestdiv
withdisplay: table
but there is no selector/class for it, I tried it using devtools. Is there a way for a child of ScrollArea to grow to take all empty space on page without using a hack like addingheight: 100%
without a selector since I am using tailwind and not SCSS.Beta Was this translation helpful? Give feedback.
All reactions