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.

topic-popover: Add chevron-right icon in topic popover title.

SiddharthVarshneyb122ad7da477
diff --git a/static/js/stream_popover.js b/static/js/stream_popover.js
index df2e52740d7..ef8746a70e3 100644
--- a/static/js/stream_popover.js
+++ b/static/js/stream_popover.js
@@ -193,6 +193,7 @@ function build_topic_popover(opts) {
can_mute_topic: can_mute_topic,
can_unmute_topic: can_unmute_topic,
is_admin: sub.is_admin,
+ color: sub.color,
});
$(elt).popover({
diff --git a/static/styles/popovers.scss b/static/styles/popovers.scss
index 724e0cf74c1..251dbb3a6c2 100644
--- a/static/styles/popovers.scss
+++ b/static/styles/popovers.scss
@@ -122,6 +122,10 @@ ul {
text-align: center;
margin-top: 5px;
margin-bottom: 5px;
+
+ .fa-chevron-right {
+ font-size: 12px;
+ }
}
.admin-separator {
diff --git a/static/templates/topic_sidebar_actions.hbs b/static/templates/topic_sidebar_actions.hbs
index 791caf2def2..b2a8475f918 100644
--- a/static/templates/topic_sidebar_actions.hbs
+++ b/static/templates/topic_sidebar_actions.hbs
@@ -1,6 +1,7 @@
<ul class="nav nav-list topics_popover">
<li>
<p class="topic-name">
+ <i class="fa fa-chevron-right" aria-hidden="true" style="color: {{color}}"></i>
<b>{{topic_name}}</b>
</p>
</li>