From 3991fb3ea6044996c06cae5e28171398376f4e2b Mon Sep 17 00:00:00 2001 From: Aryan Shridhar <53977614+aryanshridhar@users.noreply.github.com> Date: Thu, 22 Jul 2021 00:32:40 +0530 Subject: [PATCH] Revert "message_edit: Replace checkboxes with settings_checkbox partial." This reverts commit 54a1c73c7888f6fd398eb17cebe15bd60520a6c7. --- static/js/message_edit.js | 4 ++-- static/styles/app_components.css | 7 +++++++ static/styles/zulip.css | 5 ----- static/templates/message_edit_form.hbs | 21 +++++++++++---------- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/static/js/message_edit.js b/static/js/message_edit.js index 20084e09f6..53810490d0 100644 --- a/static/js/message_edit.js +++ b/static/js/message_edit.js @@ -832,10 +832,10 @@ export function save_message_row_edit(row) { const selected_topic_propagation = row.find("select.message_edit_topic_propagate").val() || "change_later"; const send_notification_to_old_thread = row - .find("#id_send_notification_to_old_thread") + .find(".send_notification_to_old_thread") .is(":checked"); const send_notification_to_new_thread = row - .find("#id_send_notification_to_new_thread") + .find(".send_notification_to_new_thread") .is(":checked"); request.propagate_mode = selected_topic_propagation; request.send_notification_to_old_thread = send_notification_to_old_thread; diff --git a/static/styles/app_components.css b/static/styles/app_components.css index 0d4e0ede5f..8de60e15c3 100644 --- a/static/styles/app_components.css +++ b/static/styles/app_components.css @@ -9,6 +9,13 @@ justify-content: center; } +/* Inserting this collapsed row between two flex items will make + * the flex item that comes after it break to a new row */ +.break-row { + flex-basis: 100%; + height: 0; +} + .hide { display: none; } diff --git a/static/styles/zulip.css b/static/styles/zulip.css index 2be631fd54..bfc810bcdb 100644 --- a/static/styles/zulip.css +++ b/static/styles/zulip.css @@ -2544,11 +2544,6 @@ div.topic_edit_spinner .loading_indicator_spinner { border-radius: 1px 4px 4px 1px !important; } - /* Remove the bottom margin from the notification checkboxes */ - .message_edit_breadcrumb_messages .input-group { - margin-bottom: 0; - } - .stream_header_colorblock { margin-bottom: 20px; } diff --git a/static/templates/message_edit_form.hbs b/static/templates/message_edit_form.hbs index 0bba8e4b44..3ef5cfe497 100644 --- a/static/templates/message_edit_form.hbs +++ b/static/templates/message_edit_form.hbs @@ -18,16 +18,17 @@