Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
content: Use
object-fit: scale-down
to fit images, vs. contain
This matches the behavior of Zulip web. The meaning of this value is that the image is either scaled according to `contain`, or not scaled at all, whichever makes it smaller. In other words, we still scale down all the images we were scaling down, but we stop scaling any images up, which tended to look a bit silly. If the user wants to see the image scaled up, they can always tap to see it in the lightbox. This case is about to become more common with the advent of thumbnailing: when we get a message where the server hasn't yet gotten to producing a thumbnail, we'll show a placeholder image. That placeholder is a 30x30 SVG, which looks rather odder if scaled up to 160px high.
- Loading branch information