Forum Documentation Showcase Pricing Learn more

How to make a group height contract when there is no content in it

i am trying to make a facebook style post since i can not make the data type a dynamic value i am gonna put the image, video, image gallery elements in the cell
now if there is no content for image then i want it to not take the space and the cell to contract it’s height
how to do this ??

Put your image object inside a group and make a condition on that group to hide when there’s no image. Make sure you check the “collapse this element’s height when hidden” on your group object.
For text objects you can simply check the box for “shrink the element height when text gets shorter.”

2 Likes

watch this video, https://youtu.be/yvmM2pm3o4k

It’s from Gaby, @romanmg one of bubble’s many experienced developer’s.

1 Like

Thanks a lot guys :wink: