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.

message_header: Update legacy resolve topic button to use icon button.

Sayam Samal03e3fc140260
diff --git a/web/src/click_handlers.ts b/web/src/click_handlers.ts
index 4733e2f5ef0..f5fdccae908 100644
--- a/web/src/click_handlers.ts
+++ b/web/src/click_handlers.ts
@@ -400,7 +400,7 @@ export function initialize(): void {
e.stopPropagation();
const $recipient_row = $(e.target).closest(".recipient_row");
const message_id = rows.id_for_recipient_row($recipient_row);
- const topic_name = $(e.target).attr("data-topic-name")!;
+ const topic_name = $(e.target).closest(".message_header").attr("data-topic-name")!;
message_edit.toggle_resolve_topic(message_id, topic_name, false, $recipient_row);
});
diff --git a/web/styles/message_header.css b/web/styles/message_header.css
index a2a20dc0a0c..d6667b5274b 100644
--- a/web/styles/message_header.css
+++ b/web/styles/message_header.css
@@ -283,15 +283,6 @@
}
}
-.on_hover_topic_resolve {
- opacity: 0.2;
-
- &:hover {
- cursor: pointer;
- opacity: 0.7;
- }
-}
-
.recipient_row_date {
color: var(--color-date);
font-size: calc(12em / 14);
diff --git a/web/templates/recipient_row.hbs b/web/templates/recipient_row.hbs
index 2b620cfa981..1bae8e7bb1e 100644
--- a/web/templates/recipient_row.hbs
+++ b/web/templates/recipient_row.hbs
@@ -54,7 +54,7 @@
{{#if topic_is_resolved}}
{{> components/icon_button icon="check-x" intent="neutral" custom_classes="on_hover_topic_unresolve recipient-bar-control recipient-bar-control-icon hidden-for-spectators" data-tippy-content=(t "Mark as unresolved") aria-label=(t "Mark as unresolved") }}
{{else}}
- <i class="fa fa-check on_hover_topic_resolve recipient-bar-control recipient_bar_icon hidden-for-spectators" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mark as resolved' }}" role="button" tabindex="0" aria-label="{{t 'Mark as resolved' }}"></i>
+ {{> components/icon_button icon="check" intent="neutral" custom_classes="on_hover_topic_resolve recipient-bar-control recipient-bar-control-icon hidden-for-spectators" data-tippy-content=(t "Mark as resolved") aria-label=(t "Mark as resolved") }}
{{/if}}
<div class="toggle_resolve_topic_spinner recipient_bar_icon" style="display: none"></div>
{{/if}}