discourse/app/assets/stylesheets/common
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
..
admin UX: Add details button to admin bounced/rejected lists (#16343) 2022-03-31 11:14:11 -04:00
base FIX: Ensure images do not change height when loading is complete (#16368) 2022-04-05 13:43:17 +01:00
components FIX: Show bookmark options by default when editing (#16189) 2022-03-16 16:41:24 +02:00
foundation UX: Change color functions to match original primary, tertiary functions (#16040) 2022-02-23 15:41:50 -06:00
select-kit FEATURE: Use new topic-chooser for invite modal (#15884) 2022-02-14 13:43:52 +02:00
d-editor.scss UX: Allow d-editor to be shrunk (#16164) 2022-03-11 18:18:27 +01:00
font-variables.scss FIX: Use rem for font sizes in post headings (#13720) 2021-07-14 11:15:58 +10:00
input_tip.scss DEV: Refactor popup-tip component (#15257) 2021-12-13 11:22:02 -05:00
printer-friendly.scss UX: print view always shows 0 votes, hide it (#15901) 2022-03-08 15:35:31 +01:00
software-update-prompt.scss UX: Add hover style to refresh-page dismiss button (#15711) 2022-02-01 20:04:46 +01:00
topic-entrance.scss fix topic entrance button layout (#11887) 2021-01-28 15:44:01 -05:00
topic-timeline.scss UX: Improve timeline touch hit areas (#16038) 2022-02-23 17:55:48 +01:00