left_sidebar: Structure topic box as a div.

This helps clarify in the templates that the topic box is in fact
a box, and not an inline item (span).

Also, single quotes have been changed to doubles in li and new div
elements.
This commit is contained in:
Karl Stolley
2023-09-21 12:39:06 -05:00
committed by Tim Abbott
parent 9e3133e820
commit 04e1d2c39d
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
<li class="topic-list-item show-more-topics bottom_left_row
{{#unless more_topics_unreads}}zero-topic-unreads{{/unless}}
{{#if more_topics_unread_count_muted}}more_topic_unreads_muted_only{{/if}}">
<span class='topic-box'>
<div class="topic-box">
<a class="topic-name" tabindex="0">{{t "more topics" }}</a>
{{#if more_topics_have_unread_mention_messages}}
<span class="unread_mention_info">
@@ -11,5 +11,5 @@
<span class="unread_count {{#unless more_topics_unreads}}zero_count{{/unless}}">
{{more_topics_unreads}}
</span>
</span>
</div>
</li>

View File

@@ -1,5 +1,5 @@
<li class='bottom_left_row {{#if is_active_topic}}active-sub-filter{{/if}} {{#if is_zero}}zero-topic-unreads{{/if}} {{#if is_muted}}muted_topic{{/if}} {{#if is_unmuted_or_followed}}unmuted_or_followed_topic{{/if}} topic-list-item' data-topic-name='{{topic_name}}'>
<span class='topic-box'>
<li class="bottom_left_row {{#if is_active_topic}}active-sub-filter{{/if}} {{#if is_zero}}zero-topic-unreads{{/if}} {{#if is_muted}}muted_topic{{/if}} {{#if is_unmuted_or_followed}}unmuted_or_followed_topic{{/if}} topic-list-item" data-topic-name="{{topic_name}}">
<div class="topic-box">
<span class="sidebar-topic-check">
{{topic_resolved_prefix}}
</span>
@@ -17,7 +17,7 @@
<span class="unread_count {{#if is_zero}}zero_count{{/if}}">
{{unread}}
</span>
</span>
</div>
<span class="sidebar-menu-icon topic-sidebar-menu-icon">
<i class="zulip-icon zulip-icon-more-vertical" aria-hidden="true"></i>
</span>