]> git.openstreetmap.org Git - rails.git/commitdiff
Specify avatar dimensions in html tags
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Sep 2021 17:47:20 +0000 (18:47 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 13 Oct 2021 13:05:02 +0000 (14:05 +0100)
This prevents reflow when the images are loaded by the browser.

ActiveStorage variants are resized lazily when the image is requested,
so we only know the dimensions if the image was already loaded. This
means that there will be one reflow just after a new avatar is first
viewed.


No differences found