diff --git a/app/assets/stylesheets/common/base/sidebar.scss b/app/assets/stylesheets/common/base/sidebar.scss index 181e7d8f978..d05b39de0ff 100644 --- a/app/assets/stylesheets/common/base/sidebar.scss +++ b/app/assets/stylesheets/common/base/sidebar.scss @@ -31,18 +31,21 @@ @include unselectable; - // 100dvh with fallback for old browsers - --100dvh: 100vh; - @supports (height: 100dvh) { - --100dvh: 100dvh; + // 1dvh with fallback for old browsers + --1dvh: 1vh; + @supports (height: 1dvh) { + --1dvh: 1dvh; } - height: calc(var(--100dvh) - var(--header-offset, 0px)); + height: calc( + var(--composer-vh, var(--1dvh)) * 100 - var(--header-offset, 0px) + ); .footer-nav-ipad & { top: calc(var(--header-offset) + var(--footer-nav-height)); height: calc( - var(--100dvh) - var(--header-offset, 0px) - var(--footer-nav-height, 0px) + var(--composer-vh, var(--1dvh)) * 100 - var(--header-offset, 0px) - + var(--footer-nav-height, 0px) ); } diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list.hbs b/plugins/chat/assets/javascripts/discourse/components/channels-list.hbs index eefdc9fdcee..6df9197b8f8 100644 --- a/plugins/chat/assets/javascripts/discourse/components/channels-list.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/channels-list.hbs @@ -1,10 +1,8 @@ -{{#if - (and this.showMobileDirectMessageButton this.canCreateDirectMessageChannel) -}} +{{#if this.showMobileDirectMessageButton}} {{d-icon "plus"}} @@ -62,6 +60,7 @@ /> {{/each}} {{/if}} + {{/if}} diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list.js b/plugins/chat/assets/javascripts/discourse/components/channels-list.js index 77799af89b1..c08543b0013 100644 --- a/plugins/chat/assets/javascripts/discourse/components/channels-list.js +++ b/plugins/chat/assets/javascripts/discourse/components/channels-list.js @@ -26,7 +26,7 @@ export default class ChannelsList extends Component { } get showMobileDirectMessageButton() { - return this.site.mobileView && this.showDirectMessageChannels; + return this.site.mobileView && this.canCreateDirectMessageChannel; } get inSidebar() { diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-browse-view.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-browse-view.hbs index 229f6b600dc..d004eb0ceec 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-browse-view.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-browse-view.hbs @@ -1,12 +1,3 @@ -{{#if this.chatProgressBarContainer}} - {{#in-element this.chatProgressBarContainer}} - - {{/in-element}} -{{/if}} -
{{#if this.site.mobileView}}
{{else if this.channelsCollection.length}} -
-
-
- {{#each this.channelsCollection as |channel|}} - - {{/each}} + +
+
+
+ {{#each this.channelsCollection as |channel|}} + + {{/each}} +
- - {{#unless this.channelsCollection.loading}} - - {{/unless}}
-
+ + + {{/if}}
\ No newline at end of file diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-members-view.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-members-view.hbs index ff3bb3fb71f..56be4a2a42d 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-members-view.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-members-view.hbs @@ -1,45 +1,41 @@ -{{#if this.chatProgressBarContainer}} - {{#in-element this.chatProgressBarContainer}} - - {{/in-element}} -{{/if}} - {{#if (gt this.channel.membershipsCount 0)}} -
-
- - {{d-icon "search"}} -
+ +
+
+ + {{d-icon "search"}} +
-
- -
- {{#each this.members as |membership|}} -
- -
- {{else}} - {{#unless this.isFetchingMembers}} - {{i18n "chat.channel.no_memberships_found"}} - {{/unless}} - {{/each}} +
+
+ {{#each this.members as |membership|}} +
+ +
+ {{else}} + {{#unless this.isFetchingMembers}} + {{i18n "chat.channel.no_memberships_found"}} + {{/unless}} + {{/each}} +
-
+ + {{else}}
{{i18n "chat.channel.no_memberships"}} diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-draft-channel-screen.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-draft-channel-screen.hbs index 35d7499f23b..4784c08ddec 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-draft-channel-screen.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-draft-channel-screen.hbs @@ -1,6 +1,10 @@
{{#if this.site.mobileView}} -
+
+