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_row: Use CSS selectors to hide reactions, reminders.

Karl Stolleyf3194057ae8e
diff --git a/web/src/message_edit.ts b/web/src/message_edit.ts
index a6ab98ac9ee..07fa3236bd2 100644
--- a/web/src/message_edit.ts
+++ b/web/src/message_edit.ts
@@ -552,7 +552,6 @@ function edit_message($row: JQuery, raw_content: string): void {
assert(message_lists.current !== undefined);
const message = message_lists.current.get(rows.id($row));
assert(message !== undefined);
- $row.find(".message_reactions").hide();
condense.hide_message_length_toggle($row);
// We potentially got to this function by clicking a button that implied the
@@ -1079,7 +1078,6 @@ export function end_message_row_edit($row: JQuery): void {
condense.show_message_condenser($row);
}
}
- $row.find(".message_reactions").show();
// We have to blur out text fields, or else hotkeys.js
// thinks we are still editing.
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index ab0e2230330..a1d3d0ec468 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -130,6 +130,12 @@
var(--message-box-timestamp-column-width),
max-content
);
+
+ /* Hide reactions, scheduled reminders in edit mode. */
+ .message_reactions,
+ .message-reminders {
+ display: none;
+ }
}
.message_edit_notice {