Skip to content

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

UX: Keep chat oneboxes compact on wide screens (#45217)

Alan Guo Xiang Tand89a56f86a2c
diff --git a/plugins/chat/assets/stylesheets/common/chat-message-images.scss b/plugins/chat/assets/stylesheets/common/chat-message-images.scss
index bd253a60129..aecc29f5691 100644
--- a/plugins/chat/assets/stylesheets/common/chat-message-images.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-message-images.scss
@@ -46,8 +46,8 @@ $max_video_height: 250px;
}
}
- // Event images are sized by the onebox width, so match the width used in posts
- aside.onebox:has(.discourse-event-onebox) {
+ // Match the maximum width used in posts
+ aside.onebox {
max-width: var(--topic-body-width);
}