Skip to content

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

UX: prevents non-lightboxed images in quotes from stretching/squeezing (#8021)

Joe15e70cc4b4a8
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index 00d73f66297..8d6e880ddd1 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -235,6 +235,8 @@ blockquote {
// !important here otherwise it won't work.
img {
max-width: 100% !important;
+ object-fit: cover;
+ object-position: top;
}
}