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.

navbar: Improve click area around stream name.

YashRE4271e393575ba0
diff --git a/static/styles/night_mode.scss b/static/styles/night_mode.scss
index 41ae6922d37..734f4fb557c 100644
--- a/static/styles/night_mode.scss
+++ b/static/styles/night_mode.scss
@@ -263,6 +263,9 @@ on a dark background, and don't change the dark labels dark either. */
color: hsl(0, 0%, 100%);
}
+ #tab_bar #tab_list .stream {
+ color: hsl(236, 33%, 90%);
+ }
#tab_bar #tab_list .sub_count,
#tab_bar #tab_list .narrow_description {
color: hsla(0, 0%, 90%, 1);
diff --git a/static/styles/zulip.scss b/static/styles/zulip.scss
index 7aaebc366e2..ad4ee250c3d 100644
--- a/static/styles/zulip.scss
+++ b/static/styles/zulip.scss
@@ -1468,6 +1468,7 @@ div.focused_table {
display: none;
}
.sub_count,
+ .stream,
& > span {
white-space: nowrap;
list-style-type: none;
@@ -1483,7 +1484,6 @@ div.focused_table {
@media (max-width: 500px) {
padding: 7px 3.5px; // based on having ~41.66% decrease
}
-
i {
margin-right: 3px;
}
@@ -1504,11 +1504,8 @@ div.focused_table {
.stream {
text-overflow: clip;
overflow: hidden;
- a {
- color: inherit;
- text-decoration: none;
- padding-right: 2px;
- }
+ color: inherit;
+ text-decoration: none;
}
.sub_count,
diff --git a/static/templates/navbar_icon_and_title.hbs b/static/templates/navbar_icon_and_title.hbs
new file mode 100644
index 00000000000..50066f452ba
--- /dev/null
+++ b/static/templates/navbar_icon_and_title.hbs
@@ -0,0 +1,4 @@
+{{#if icon}}
+<i class="fa fa-{{icon}}" aria-hidden="true"></i>
+{{/if}}
+{{title}}
diff --git a/static/templates/tab_bar.hbs b/static/templates/tab_bar.hbs
index 2d0fa9ae62e..b476bc22050 100644
--- a/static/templates/tab_bar.hbs
+++ b/static/templates/tab_bar.hbs
@@ -1,15 +1,8 @@
<span id="tab_list">
- <span {{#if stream_settings_link}}class="stream"{{/if}}>
- {{#if icon}}
- <i class="fa fa-{{icon}}" aria-hidden="true"></i>
- {{/if}}
- {{#if stream_settings_link}}
- <a href="{{stream_settings_link}}">{{title}}</a>
- {{else}}
- {{title}}
- {{/if}}
- </span>
- {{#if sub_count}}
+ {{#if stream_settings_link}}
+ <a class="stream" href="{{stream_settings_link}}">
+ {{> navbar_icon_and_title }}
+ </a>
<a class="sub_count no-style" data-toggle="tooltip" title="{{sub_count_tooltip_text}}" href="{{stream_settings_link}}">
<i class="fa fa-user-o"></i>{{formatted_sub_count}}
</a>
@@ -18,6 +11,10 @@
{{else}}
<span class="narrow_description rendered_markdown" data-toggle="tooltip">{{t "(no description)"}}</span>
{{/if}}
+ {{else}}
+ <span>
+ {{> navbar_icon_and_title }}
+ </span>
{{/if}}
<span class="search_icon search_closed" ><i class="fa fa-search" aria-hidden="true"></i></span>
</span>