Skip to content

A platform for community discussion. Free, open, simple.

UX: Ensure image size is maintained even after loading error (#18805)

David Taylord22fddf00af8
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index 9825e814e7b..d80440f25ed 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -196,6 +196,7 @@ $quote-share-maxwidth: 150px;
img:not(.thumbnail):not(.ytp-thumbnail-image):not(.emoji) {
max-width: 100%;
height: auto;
+ display: inline-block; // Ensure dimensions are maintained even after load error
@supports not (aspect-ratio: 1) {
// (see javascripts/discourse/app/initializers/image-aspect-ratio.js)