discourse/app
David Taylor 7edc941843
FIX: Ensure images do not change height when loading is complete (#16368)
Browsers automatically calculate an aspect ratio based on the width/height attributes of an `<img`. HOWEVER that aspect ratio only applies while the image is loading. Once loaded, it'll use the image's actual dimensions. This can cause things to jump around after loading. For example:
 - if a user deliberately inserts false width/height
 - the image fails to load (404)
 - an optimised image is a few pixels different, due to a rounding when resizing

This decorator explicitly sets the `aspect-ratio` property so that things are consistent throughout the lifetime of all `<img` elements.
2022-04-05 13:43:17 +01:00
..
assets FIX: Ensure images do not change height when loading is complete (#16368) 2022-04-05 13:43:17 +01:00
controllers FIX: Redirect user to topic they were invited to (#16298) 2022-04-05 14:57:00 +03:00
helpers FEATURE: use canonical links in posts.rss feed (#16190) 2022-03-15 20:17:06 +11:00
jobs FIX: Do not attempt to pull_hotlinked_image for raw_html 2022-04-05 16:39:38 +08:00
mailers FEATURE: Allow sending group SMTP emails with from alias (#15687) 2022-02-07 13:52:01 +10:00
models FIX: 500 error when creating a user with an integer username (#16370) 2022-04-04 15:15:32 -06:00
serializers FIX: can_permanently_delete should check for admin (#16348) 2022-04-01 12:03:39 +11:00
services FIX: Auto-generated emails causing group SMTP email storm (#16372) 2022-04-05 13:18:49 +10:00
views linting (#16360) 2022-04-02 10:47:01 -05:00