I have a widget that displays an image from an item where the item is a string url that scrolls through various images off of my emby server. The images are of varying sizes. However, i would like the display to resize the images to keep the image inside the widgets card.
I have tried various configurations of max-width/ max-height and can’t get it to work.
I have set the widgets card max-height to be the maximum height that can be displayed on my tablet. And the widget is then deployed in a cell that has its width set.
What do i need to change in this yaml code to get the image to re-size correctly.
Your extra row and column containers are just complicating matters. You really only need one container for the image. Once you have that image in a single container then you just want that image to never be wider or taller than the container.
Just don’t use an f7-card for the base of that widget. All the “cards” have the styles preset to so that they look like that and you’d have to get rid of the background, the border, the shadows, and a few other things probably.
Instead just use an f7-block as your base component for the widget.