A platform for community discussion. Free, open, simple.
UX: Further fix twitter oneboxes in chat (#42666)
Martin Brennan61005d37c0ae
diff --git a/plugins/chat/assets/stylesheets/common/base-common.scss b/plugins/chat/assets/stylesheets/common/base-common.scssindex 221b612055e..e735f0478f3 100644--- a/plugins/chat/assets/stylesheets/common/base-common.scss+++ b/plugins/chat/assets/stylesheets/common/base-common.scss@@ -245,33 +245,6 @@ body.has-full-page-chat {iframe.reddit-onebox {margin: var(--space-2) 0;}-- .onebox.twitterstatus {- max-width: 500px;-- .tweet-images {- .tweet-video {- height: calc(576px / (var(--aspect-ratio)));- max-height: 400px;- }- }-- .aspect-image-full-size {- object-fit: initial;- max-height: 400px;-- .tweet-image {- object-fit: initial;- max-height: 400px;- }- }-- .thumbnail.onebox-avatar {- max-width: 38px;- margin-right: var(--space-2);- margin-top: var(--space-1);- }- }}.reviewable-chat-message {diff --git a/plugins/chat/assets/stylesheets/common/chat-message-images.scss b/plugins/chat/assets/stylesheets/common/chat-message-images.scssindex bce7865edba..3f3c45b5b66 100644--- a/plugins/chat/assets/stylesheets/common/chat-message-images.scss+++ b/plugins/chat/assets/stylesheets/common/chat-message-images.scss@@ -73,6 +73,33 @@ $max_image_height: 150px;}}+ .onebox.twitterstatus {+ max-width: 500px;++ .tweet-images {+ .tweet-video {+ height: calc(576px / (var(--aspect-ratio)));+ max-height: 400px;+ }+ }++ .aspect-image-full-size {+ object-fit: initial;+ max-height: 400px;++ .tweet-image {+ object-fit: initial;+ max-height: 400px;+ }+ }++ .thumbnail.onebox-avatar {+ max-width: 38px;+ margin-right: var(--space-2);+ margin-top: var(--space-1);+ }+ }+.chat-message-collapser.chat-message-collapser-header+ div