Skip to content

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

UI: hides channel with visible panel on narrow screen (#29541)

Joffrey JAFFEUX5a3afa050567
diff --git a/plugins/chat/assets/stylesheets/desktop/chat-channel.scss b/plugins/chat/assets/stylesheets/desktop/chat-channel.scss
new file mode 100644
index 00000000000..7d467abd9e7
--- /dev/null
+++ b/plugins/chat/assets/stylesheets/desktop/chat-channel.scss
@@ -0,0 +1,16 @@
+@include breakpoint(large) {
+ .main-chat-outlet.has-side-panel-expanded {
+ .c-routes.--channel {
+ display: none;
+ }
+
+ .chat-side-panel {
+ width: 100% !important; // overrides the inline auto width
+ border: none;
+
+ .chat-side-panel-resizer {
+ display: none;
+ }
+ }
+ }
+}
diff --git a/plugins/chat/assets/stylesheets/desktop/index.scss b/plugins/chat/assets/stylesheets/desktop/index.scss
index 2a008fbb92b..701ff7c0f82 100644
--- a/plugins/chat/assets/stylesheets/desktop/index.scss
+++ b/plugins/chat/assets/stylesheets/desktop/index.scss
@@ -3,6 +3,7 @@
@import "chat-composer-uploads";
@import "chat-index-drawer";
@import "chat-index-full-page";
+@import "chat-channel";
@import "chat-message-actions";
@import "chat-message";
@import "chat-channel-info";