Hi guys. I am created a custom data viewer layout for my news tab in my app. It has an image, title, and description-as int he picture below. I am connecting it to a Google Sheet to keep it updated. I want to know how to make it so that if there is no image, there won’t just be a white gap on the screen, but it will fill - sort of making it dynamic if you know what I mean
I have a the 3 components inside of a container inside of a layout (it is all verticle)
What values should i put, im assuming for the heights so it becomes dynamic
Hey, anyone?
What do you want it to look like if there is no image url for that container?
if there is no image i want it to be blank and fill in the gap if you know what i mean
Hi I honestly don’t get what you are saying. Let me give this example, please g
Ignore the content it’s just what popped up. Twitter (x) is Abel to have both text and videos. Not all tweets have an image or video attached so it doesn’t just show a blank gap but it filled it in so it’s all nice smooth and neat
What I’ve found works is to have this format:
Layout
Outer container
Inner container
And save the Outer container as the custom DVL layout.
And what do i put for each in regards to the sizing - height and width
like what should i put for each of the container and what hsould i put for the components
Try what I suggested for the height. If it doesn’t work, post a link to your project.
All the widths I should set to fill container and all the heights should be fill content - for all components?
Hi i cant send the link go my project but can you please instruct me the widths and heights for each of the above components?
I don’t actually know the answer. I would do some trial and error. Try fill container for the widths and see if it looks how you want. Are you unable to share a link to your project or do you just prefer not to?
HI please check pm
hi nvm. the problem is that the image has a big gap on the bottom and top - for all images. look at this video in this link
I haven’t gotten a message from you.
Yea, sorry i deleted it. I really couldnt figure this out. I will avoid doing this because it cannot be figured out thanks for your help
Hi, I had come across your problem when i was trying to find an answer to a similar problem. I just recently started using thunkable.
My problem was solved by using fit to contents instead of fixed dimensions which collapsed the area which held the label when it found a blank label where i needed it to be so. Maybe if an outer layout container is used which holds your image while making a custom dataview out of your layout, a similar collapsible effect might be achieved.
Please try it and let me know if it worked. Thanks.







