A platform for community discussion. Free, open, simple.
UX: Fix large onebox avatars in img chat messages (#20469)
Jarek Radoszc81d4f60af61
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scssindex d0f40bbd897..5886c97f3f1 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:not(.avatar) {+ img:not(.avatar, .onebox-avatar-inline) {max-height: 170px;max-width: 20%;@media all and (max-width: 600px) {diff --git a/plugins/chat/assets/stylesheets/common/chat-message-images.scss b/plugins/chat/assets/stylesheets/common/chat-message-images.scssindex 2805ed5cacc..300629fe7f2 100644--- a/plugins/chat/assets/stylesheets/common/chat-message-images.scss+++ b/plugins/chat/assets/stylesheets/common/chat-message-images.scss@@ -3,7 +3,9 @@ $max_image_height: 150px;.chat-message {// append selectors to set images to a// max height of $max_image_height- .chat-message-collapser .onebox img:not(.ytp-thumbnail-image),+ .chat-message-collapser+ .onebox+ img:not(.ytp-thumbnail-image, .onebox-avatar-inline),.chat-message-collapser img.onebox,.chat-message-collapser .chat-uploads img,.chat-message-collapser p img,diff --git a/plugins/chat/assets/stylesheets/desktop/desktop.scss b/plugins/chat/assets/stylesheets/desktop/desktop.scssindex 95c06084d07..ea281cbe347 100644--- a/plugins/chat/assets/stylesheets/desktop/desktop.scss+++ b/plugins/chat/assets/stylesheets/desktop/desktop.scss@@ -39,7 +39,7 @@}.chat-message-text {- img:not(.emoji):not(.avatar) {+ img:not(.emoji):not(.avatar, .onebox-avatar-inline) {transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);&:hover {