Skip to content

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

UX: Align chat separators, increase mobile chat width (#22298)

Jarek Radosza6bd3994f32b
diff --git a/plugins/chat/assets/stylesheets/common/chat-message-separator.scss b/plugins/chat/assets/stylesheets/common/chat-message-separator.scss
index f34c90afd53..4575e1aa37b 100644
--- a/plugins/chat/assets/stylesheets/common/chat-message-separator.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-message-separator.scss
@@ -5,7 +5,7 @@
&-new {
display: flex;
justify-content: center;
- padding: 20px 0 20px 1em;
+ padding: 20px 0 20px var(--scrollbarWidth);
position: relative;
.chat-message-separator__text-container {
@@ -44,7 +44,7 @@
display: flex;
align-items: flex-start;
justify-content: center;
- padding-left: 1rem;
+ padding-left: var(--scrollbarWidth);
pointer-events: none;
&.with-last-visit {
@@ -125,7 +125,7 @@
}
& + .chat-message-separator__line-container {
- padding: 20px 0;
+ padding: 20px 0 20px var(--scrollbarWidth);
box-sizing: border-box;
.chat-message-separator__line {
diff --git a/plugins/chat/assets/stylesheets/mobile/chat-channel.scss b/plugins/chat/assets/stylesheets/mobile/chat-channel.scss
index ff846f1bac3..5eabe9eec06 100644
--- a/plugins/chat/assets/stylesheets/mobile/chat-channel.scss
+++ b/plugins/chat/assets/stylesheets/mobile/chat-channel.scss
@@ -1,5 +1,5 @@
.chat-channel {
.chat-messages-scroll {
- padding: 0 10px 10px 10px;
+ padding-bottom: 5px;
}
}