stash-box
stash-box copied to clipboard
[Bug Report] Images in edits doesn't have correct aspect ratio
Describe the bug Images doesn't have correct aspect ratio in Safari (Mac & iOS). Applies to all images.
OS:
- OS: Mac & iOS
- Browser: Safari
- Version: iOS 18 & Sonoma
Placeholder "Loading image" doesn't show either.
I'm not much of a front end dev, but I think this has something to do with webkit font sizing (Stack Overflow post). Just setting -webkit-text-size-adjust to none doesn't seem to fix in my testing, but toggling several of the font options in the css such as --bs-body-font-size or -webkit-text-size-adjust (set to 100% by default) gradually increases the width of the image on each toggle until it looks correct.