Skip to content

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

FIX: preserves avatar size inside onebox (#20066)

chapoid0780eacdcdd
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss
index 94205c74192..b31641a0fdd 100644
--- a/app/assets/stylesheets/common/base/onebox.scss
+++ b/app/assets/stylesheets/common/base/onebox.scss
@@ -141,7 +141,7 @@ aside.onebox {
color: var(--tertiary);
}
- img {
+ img:not(.avatar) {
max-height: 170px;
max-width: 20%;
@media all and (max-width: 600px) {
diff --git a/plugins/chat/assets/stylesheets/common/chat-onebox.scss b/plugins/chat/assets/stylesheets/common/chat-onebox.scss
index 39250f62b23..c039e7463d4 100644
--- a/plugins/chat/assets/stylesheets/common/chat-onebox.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-onebox.scss
@@ -18,6 +18,7 @@
align-items: center;
color: var(--primary-medium);
display: flex;
+ flex-wrap: wrap;
.avatar {
aspect-ratio: 30 / 30;