stash-box icon indicating copy to clipboard operation
stash-box copied to clipboard

[Bug Report] Images in edits doesn't have correct aspect ratio

Open gimmeliina opened this issue 10 months ago • 1 comments

Describe the bug Images doesn't have correct aspect ratio in Safari (Mac & iOS). Applies to all images.

Image

OS:

  • OS: Mac & iOS
  • Browser: Safari
  • Version: iOS 18 & Sonoma

Placeholder "Loading image" doesn't show either.

gimmeliina avatar Feb 28 '25 10:02 gimmeliina

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.

ikmckenz avatar May 22 '25 04:05 ikmckenz