Skip to content

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

UX: fix short chat window in composer peek-mode (#40604)

chapoi1746de4dc6ee
diff --git a/plugins/chat/assets/stylesheets/common/chat-channel.scss b/plugins/chat/assets/stylesheets/common/chat-channel.scss
index adee32a6331..044139bbe38 100644
--- a/plugins/chat/assets/stylesheets/common/chat-channel.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-channel.scss
@@ -1,3 +1,5 @@
+@use "lib/viewport";
+
.chat-channel {
display: flex;
flex-direction: column;
@@ -10,6 +12,15 @@
@include chat-height(var(--chat-header-offset, 0));
+ .peek-mode-active & {
+ @include viewport.from(xl) {
+ height: calc(
+ var(--composer-vh, 1vh) * 100 - var(--main-outlet-offset, 0px) -
+ 1px - var(--chat-header-offset, 0)
+ );
+ }
+ }
+
.join-channel-btn.in-float {
position: absolute;
transform: translateX(-50%);
diff --git a/themes/horizon/scss/composer-peek-mode.scss b/themes/horizon/scss/composer-peek-mode.scss
index 04ab8582aa9..a7fb6c0dcd0 100644
--- a/themes/horizon/scss/composer-peek-mode.scss
+++ b/themes/horizon/scss/composer-peek-mode.scss
@@ -1,8 +1,10 @@
+@use "lib/viewport";
+
.peek-mode-toggle {
display: none;
}
-@media screen and (width >= 1300px) {
+@include viewport.from(xl) {
html:not(.fullscreen-composer) {
.peek-mode-toggle svg {
transform: scaleX(-1);