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 <martin@discourse.org>
This commit is contained in:
chapoi
2023-05-16 18:48:01 +09:00
committed by GitHub
parent 826b24a30c
commit 7032733f10
4 changed files with 16 additions and 12 deletions

View File

@@ -5,5 +5,5 @@
class="open-thread-list-btn btn btn-flat"
{{on "click" this.stopPropagation}}
>
{{d-icon "comments"}}
{{d-icon "discourse-threads"}}
</LinkTo>

View File

@@ -31,17 +31,6 @@
{{#if (or @channel.threadingEnabled this.site.desktopView)}}
<div class="chat-full-page-header__right-actions">
{{#if @channel.threadingEnabled}}
<LinkTo
@route="chat.channel.threads"
@models={{@channel.routeModels}}
title={{i18n "chat.threads.list"}}
class="open-thread-list-btn btn btn-flat"
>
{{d-icon "comments"}}
</LinkTo>
{{/if}}
{{#if this.site.desktopView}}
<DButton
@icon="discourse-compress"
@@ -50,6 +39,17 @@
@action={{@onCloseFullScreen}}
/>
{{/if}}
{{#if @channel.threadingEnabled}}
<LinkTo
@route="chat.channel.threads"
@models={{@channel.routeModels}}
title={{i18n "chat.threads.list"}}
class="open-thread-list-btn btn btn-flat"
>
{{d-icon "discourse-threads"}}
</LinkTo>
{{/if}}
</div>
{{/if}}
</div>