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:
parent
826b24a30c
commit
7032733f10
|
@ -72,6 +72,7 @@ module SvgSprite
|
||||||
discourse-emojis
|
discourse-emojis
|
||||||
discourse-expand
|
discourse-expand
|
||||||
discourse-other-tab
|
discourse-other-tab
|
||||||
|
discourse-threads
|
||||||
download
|
download
|
||||||
ellipsis-h
|
ellipsis-h
|
||||||
ellipsis-v
|
ellipsis-v
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
class="open-thread-list-btn btn btn-flat"
|
class="open-thread-list-btn btn btn-flat"
|
||||||
{{on "click" this.stopPropagation}}
|
{{on "click" this.stopPropagation}}
|
||||||
>
|
>
|
||||||
{{d-icon "comments"}}
|
{{d-icon "discourse-threads"}}
|
||||||
</LinkTo>
|
</LinkTo>
|
|
@ -31,17 +31,6 @@
|
||||||
|
|
||||||
{{#if (or @channel.threadingEnabled this.site.desktopView)}}
|
{{#if (or @channel.threadingEnabled this.site.desktopView)}}
|
||||||
<div class="chat-full-page-header__right-actions">
|
<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}}
|
{{#if this.site.desktopView}}
|
||||||
<DButton
|
<DButton
|
||||||
@icon="discourse-compress"
|
@icon="discourse-compress"
|
||||||
|
@ -50,6 +39,17 @@
|
||||||
@action={{@onCloseFullScreen}}
|
@action={{@onCloseFullScreen}}
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/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>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -53,4 +53,7 @@ Additional SVG icons
|
||||||
</clipPath>
|
</clipPath>
|
||||||
</defs>
|
</defs>
|
||||||
</symbol>
|
</symbol>
|
||||||
|
<symbol id="discourse-threads" viewBox="0 0 16 17">
|
||||||
|
<path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M5 0L4.57143 3H1V4H4.42857L3.57143 10H0V11H3.42857L3 14L3.98995 14.1414L4.43872 11H7V10H4.58158L5.43872 4H11.4286L11 7H12.0102L12.4387 4H16V3H12.5816L12.9899 0.141421L12 0L11.5714 3H5.58158L5.98995 0.141421L5 0ZM8 13.5V9C8 8.44772 8.44771 8 9 8H15C15.5523 8 16 8.44771 16 9V13.5C16 14.0523 15.5523 14.5 15 14.5H12.1194C11.5042 15.2014 10.396 16.3544 10.0417 16C9.97944 15.9223 9.99982 15.0667 10.0206 14.5H9C8.44771 14.5 8 14.0523 8 13.5Z"/>
|
||||||
|
</symbol>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.8 KiB |
Loading…
Reference in New Issue