From 7032733f10df685cb50c84aeb929e6d51ddb81aa Mon Sep 17 00:00:00 2001 From: chapoi <101828855+chapoi@users.noreply.github.com> Date: Tue, 16 May 2023 18:48:01 +0900 Subject: [PATCH] FIX: Add new chat threads icon and move thread list button to right (#21575) * DEV: add new thread icon * FIX: Use new thread icon, fix typo in SVG UX: move the thread list icon to the right of the collapse button --------- Co-authored-by: Martin Brennan --- lib/svg_sprite.rb | 1 + .../chat-drawer/header/thread-list-button.hbs | 2 +- .../components/chat-full-page-header.hbs | 22 +++++++++---------- .../assets/svg-icons/discourse-additional.svg | 3 +++ 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/lib/svg_sprite.rb b/lib/svg_sprite.rb index 49bcb6939ab..65a15861721 100644 --- a/lib/svg_sprite.rb +++ b/lib/svg_sprite.rb @@ -72,6 +72,7 @@ module SvgSprite discourse-emojis discourse-expand discourse-other-tab + discourse-threads download ellipsis-h ellipsis-v diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-drawer/header/thread-list-button.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-drawer/header/thread-list-button.hbs index 9c885d733e3..99d59acadd4 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-drawer/header/thread-list-button.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-drawer/header/thread-list-button.hbs @@ -5,5 +5,5 @@ class="open-thread-list-btn btn btn-flat" {{on "click" this.stopPropagation}} > - {{d-icon "comments"}} + {{d-icon "discourse-threads"}} \ No newline at end of file diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-full-page-header.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-full-page-header.hbs index 108ddd3b059..5c070e12547 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-full-page-header.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-full-page-header.hbs @@ -31,17 +31,6 @@ {{#if (or @channel.threadingEnabled this.site.desktopView)}}
- {{#if @channel.threadingEnabled}} - - {{d-icon "comments"}} - - {{/if}} - {{#if this.site.desktopView}} {{/if}} + + {{#if @channel.threadingEnabled}} + + {{d-icon "discourse-threads"}} + + {{/if}}
{{/if}} diff --git a/vendor/assets/svg-icons/discourse-additional.svg b/vendor/assets/svg-icons/discourse-additional.svg index 38ec0f46099..c05cb52f816 100644 --- a/vendor/assets/svg-icons/discourse-additional.svg +++ b/vendor/assets/svg-icons/discourse-additional.svg @@ -53,4 +53,7 @@ Additional SVG icons + + +