I’ve been working on my app for 3 month in a row now, started from scratch and I am proudly was able to solve most problems I faced over the time, except one, and this is freaking me out by now.
The task is simple, yet I have found no solution for it yet.
I’d like to have a popup that’s not taller or wider than 80% of the vw or vh, that has a single image inside, and I want that popup to follow the AR (aspect ratio) of that image, without making it scroll or hang out of the popup.
Tried many css styles, but none of them worked for all aspect ratios so far.
I can easily do this inside a group (by toggling fit height/width to content), but can’t work out how the popup differs from them. Any suggestion is welcome and I promise I will test it!
Thanks in advance!