Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

left_sidebar: Place unread count right of stream controls.

Karl Stolley614abd58be91
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 588653f32d2..57d302263df 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -1184,27 +1184,23 @@ li.topic-list-item {
.heading-markers-and-controls {
grid-area: markers-and-controls;
height: 100%;
+ display: flex;
+ align-items: center;
+ grid-gap: 5px;
}
#filter_streams_tooltip {
display: flex;
align-items: center;
justify-content: center;
- /* Filter streams tooltip is just a block,
- not a flex or grid item at present,
- so we fill the row height this way. */
- height: 100%;
+ width: 15px;
}
- /* TODO: In the redesign, the streams icons will
- be grouped and placed to the left of a new
- unread count on Streams. */
#add_streams_tooltip {
- grid-area: ending-anchor-element;
- align-self: stretch;
display: flex;
align-items: center;
justify-content: center;
+ width: 15px;
}
.input-append {
diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs
index 91bd8a85155..486ec6e3129 100644
--- a/web/templates/left_sidebar.hbs
+++ b/web/templates/left_sidebar.hbs
@@ -161,11 +161,12 @@
<h4 class="left-sidebar-title"><span class="streams-tooltip-target" data-tooltip-template-id="filter-streams-tooltip-template">{{t 'STREAMS' }}</span></h4>
<div class="heading-markers-and-controls">
<i id="filter_streams_tooltip" class="streams_filter_icon fa fa-filter" aria-hidden="true" data-tooltip-template-id="filter-streams-tooltip-template"></i>
+ <span id="add_streams_tooltip" class="hidden-for-spectators" data-tippy-content="{{t 'Add streams' }}">
+ <i id="streams_inline_icon" class='fa fa-plus' aria-hidden="true" ></i>
+ </span>
<span class="unread_count"></span>
</div>
- <span id="add_streams_tooltip" class="hidden-for-spectators" data-tippy-content="{{t 'Add streams' }}">
- <i id="streams_inline_icon" class='fa fa-plus' aria-hidden="true" ></i>
- </span>
+
<div class="input-append notdisplayed stream_search_section">
<input class="stream-list-filter home-page-input filter_text_input" type="text" autocomplete="off" placeholder="{{t 'Filter streams' }}" />
<button type="button" class="btn clear_search_button" id="clear_search_stream_button">