From 1ce2c96eeee680466644b08298de032a26bacde1 Mon Sep 17 00:00:00 2001 From: apoorvapendse Date: Wed, 11 Jun 2025 20:14:33 +0530 Subject: [PATCH] topic-box: Support clicking on the left side. Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/Clicking.20the.20right.20end.20of.20DM.20list.20items.20doesn't.20work/near/2191051. Signed-off-by: apoorvapendse --- web/src/topic_popover.ts | 2 +- web/styles/left_sidebar.css | 15 +++++++++++++++ web/templates/topic_list_item.hbs | 8 ++++---- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/web/src/topic_popover.ts b/web/src/topic_popover.ts index 2c486d95fa..1420f33cca 100644 --- a/web/src/topic_popover.ts +++ b/web/src/topic_popover.ts @@ -38,7 +38,7 @@ function get_conversation(instance: tippy.Instance): { const $elt = $(instance.reference).closest(".topic-sidebar-menu-icon").expectOne(); const $stream_li = $elt.closest(".narrow-filter").expectOne(); topic_name = $elt.closest("li").expectOne().attr("data-topic-name")!; - url = util.the($elt.closest("li").find("a.sidebar-topic-name")).href; + url = util.the($elt.closest("li").find("a.topic-box")).href; stream_id = stream_popover.elem_to_stream_id($stream_li); } diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css index 3e16222ec6..76e48f8a1f 100644 --- a/web/styles/left_sidebar.css +++ b/web/styles/left_sidebar.css @@ -1177,6 +1177,21 @@ li.top_left_scheduled_messages { var(--left-sidebar-icon-content-gap) minmax(0, 1fr) minmax(0, max-content) minmax(0, max-content) var(--left-sidebar-vdots-width) 0; + text-decoration: none; + color: inherit; + + &:hover { + opacity: 1; + text-decoration: none; + color: inherit; + } + + &:not(:active):focus { + text-decoration: none; + border: none; + outline: none; + color: inherit; + } } .searching-for-more-topics { diff --git a/web/templates/topic_list_item.hbs b/web/templates/topic_list_item.hbs index 687e8c0700..3e4b35b4d2 100644 --- a/web/templates/topic_list_item.hbs +++ b/web/templates/topic_list_item.hbs @@ -1,11 +1,11 @@
  • -
    + {{topic_resolved_prefix}} - + {{topic_display_name}} - +
    {{#if contains_unread_mention}} @@ -21,5 +21,5 @@ -
    +