Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Explicitly register clickable topic areas.
Karl Stolley7b6f078cfcf8
diff --git a/web/src/topic_list.js b/web/src/topic_list.jsindex ad7fdc21473..8f08326b3a8 100644--- a/web/src/topic_list.js+++ b/web/src/topic_list.js@@ -305,21 +305,25 @@ export function get_topic_search_term() {}export function initialize({on_topic_click}) {- $("#stream_filters").on("click", ".topic-box", (e) => {- if (e.metaKey || e.ctrlKey) {- return;- }- if ($(e.target).closest(".show-more-topics").length > 0) {- return;- }-- const $stream_row = $(e.target).parents(".narrow-filter");- const stream_id = Number.parseInt($stream_row.attr("data-stream-id"), 10);- const topic = $(e.target).parents("li").attr("data-topic-name");- on_topic_click(stream_id, topic);-- e.preventDefault();- });+ $("#stream_filters").on(+ "click",+ ".sidebar-topic-check, .topic-name, .topic-markers-and-controls",+ (e) => {+ if (e.metaKey || e.ctrlKey) {+ return;+ }+ if ($(e.target).closest(".show-more-topics").length > 0) {+ return;+ }++ const $stream_row = $(e.target).parents(".narrow-filter");+ const stream_id = Number.parseInt($stream_row.attr("data-stream-id"), 10);+ const topic = $(e.target).parents("li").attr("data-topic-name");+ on_topic_click(stream_id, topic);++ e.preventDefault();+ },+ );$("body").on("input", "#filter-topic-input", () => {active_widgets.get(active_stream_id()).build();diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex 39a5c3f3f17..b8c8b624b29 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -49,6 +49,12 @@ $before_unread_count_padding: 3px;}}+.sidebar-topic-check,+.topic-name,+.topic-markers-and-controls {+ cursor: pointer;+}+#left-sidebar .filter-icon i {padding-right: 3px;@@ -731,7 +737,6 @@ li.topic-list-item {.topic-box {display: flex;padding-top: 1px;- cursor: pointer;align-items: center;}