Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
navbar: Remove buggy nth-last-child logic.
Tim Abbott65acbfa4c483
diff --git a/static/styles/zulip.css b/static/styles/zulip.cssindex 9e22aa1963d..61af358c6a6 100644--- a/static/styles/zulip.css+++ b/static/styles/zulip.css@@ -1798,13 +1798,10 @@ div.focused_table {last element is either the narrow description (for stream narrows) orthe "title" (for other narrows). The flex-grow property ensures theseelements take up the entirety of the white space. */- > :nth-last-child(2) {+ .navbar-click-opens-search {flex-grow: 1;- /* We extend the clickable area for the search_closed icon over the- 2nd last navbar element for better design (user convenience) this- selector makes it so mousing over that element also gives the user- a visual cue about the results of clicking the element */+ /* Provide the visual cue that clicking this will work as expected. */cursor: pointer;&:hover + .search_closed {color: hsl(0, 0%, 0%);diff --git a/static/templates/message_view_header.hbs b/static/templates/message_view_header.hbsindex 57e131c8be6..096ab4b219c 100644--- a/static/templates/message_view_header.hbs+++ b/static/templates/message_view_header.hbs@@ -5,7 +5,7 @@<a class="sub_count no-style tippy-zulip-tooltip" data-tippy-content="{{sub_count_tooltip_text}}" data-tippy-placement="bottom" href="{{stream_settings_link}}"><i class="fa fa-user-o"></i>{{formatted_sub_count}}</a>-<span class="narrow_description rendered_markdown">+<span class="narrow_description navbar-click-opens-search rendered_markdown">{{#if rendered_narrow_description}}{{rendered_markdown rendered_narrow_description}}{{else}}@@ -13,7 +13,7 @@{{/if}}</span>{{else}}-<span>+<span class="navbar-click-opens-search">{{> navbar_icon_and_title }}</span>{{/if}}