Skip to content

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

UX: Fix chat separator alignment (#20669)

Jarek Radosz38fdd842f564
diff --git a/plugins/chat/assets/stylesheets/common/base-common.scss b/plugins/chat/assets/stylesheets/common/base-common.scss
index 6049a756e9c..3688c1a12f9 100644
--- a/plugins/chat/assets/stylesheets/common/base-common.scss
+++ b/plugins/chat/assets/stylesheets/common/base-common.scss
@@ -384,6 +384,7 @@ $float-height: 530px;
.d-icon {
color: var(--secondary);
+ margin-left: 1px; // "fixes" the 1px svg shift
}
}
diff --git a/plugins/chat/assets/stylesheets/common/chat-message-separator.scss b/plugins/chat/assets/stylesheets/common/chat-message-separator.scss
index 380a807dbff..820e3e95384 100644
--- a/plugins/chat/assets/stylesheets/common/chat-message-separator.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-message-separator.scss
@@ -56,7 +56,9 @@
}
.chat-message-separator__text-container {
- padding-top: 7px;
+ align-items: center;
+ display: flex;
+ height: 40px;
position: sticky;
top: -1px;
@@ -98,11 +100,7 @@
.chat-message-separator__line {
border-top: 1px solid var(--secondary-high);
- left: 0;
margin: 0 0 -1px;
- position: relative;
- right: 0;
- top: -1px;
}
}
}