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 <li class="topic-list-item show-more-topics bottom_left_row
{{#unless more_topics_unreads}}zero-topic-unreads{{/unless}} {{#unless more_topics_unreads}}zero-topic-unreads{{/unless}}
{{#if more_topics_unread_count_muted}}more_topic_unreads_muted_only{{/if}}"> {{#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> <a class="topic-name" tabindex="0">{{t "more topics" }}</a>
{{#if more_topics_have_unread_mention_messages}} {{#if more_topics_have_unread_mention_messages}}
<span class="unread_mention_info"> <span class="unread_mention_info">
@@ -11,5 +11,5 @@
<span class="unread_count {{#unless more_topics_unreads}}zero_count{{/unless}}"> <span class="unread_count {{#unless more_topics_unreads}}zero_count{{/unless}}">
{{more_topics_unreads}} {{more_topics_unreads}}
</span> </span>
</span> </div>
</li> </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}}'> <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'> <div class="topic-box">
<span class="sidebar-topic-check"> <span class="sidebar-topic-check">
{{topic_resolved_prefix}} {{topic_resolved_prefix}}
</span> </span>
@@ -17,7 +17,7 @@
<span class="unread_count {{#if is_zero}}zero_count{{/if}}"> <span class="unread_count {{#if is_zero}}zero_count{{/if}}">
{{unread}} {{unread}}
</span> </span>
</span> </div>
<span class="sidebar-menu-icon topic-sidebar-menu-icon"> <span class="sidebar-menu-icon topic-sidebar-menu-icon">
<i class="zulip-icon zulip-icon-more-vertical" aria-hidden="true"></i> <i class="zulip-icon zulip-icon-more-vertical" aria-hidden="true"></i>
</span> </span>