Skip to content

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

UX: Onebox container sizing (#25658)

chapoi2bd0a8f432f2
diff --git a/plugins/chat/assets/stylesheets/common/chat-message-images.scss b/plugins/chat/assets/stylesheets/common/chat-message-images.scss
index 622e68b7a3a..53729b305f1 100644
--- a/plugins/chat/assets/stylesheets/common/chat-message-images.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-message-images.scss
@@ -18,7 +18,9 @@ $max_image_height: 150px;
}
.onebox {
- container-type: inline-size;
+ &:not(img) {
+ container-type: inline-size;
+ }
.thumbnail {
&.onebox-avatar {
@@ -29,6 +31,10 @@ $max_image_height: 150px;
}
}
+ .onebox-body .aspect-image {
+ max-width: 50%;
+ }
+
@container (width < 400px) {
.onebox-body {
display: flex;