Skip to content

Commit

Permalink
Matched padding of saving text with file upload text
Browse files Browse the repository at this point in the history
  • Loading branch information
waridrox committed May 23, 2021
1 parent c03ecb3 commit 338859f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Editor {

$("#comment-form-main .btn-toolbar #save-button-main").find("i").removeClass("fa fa-save").addClass("fas fa-sync fa-spin");

let saving_text = $('<p id="saving-text"> Saving... </p>');
let saving_text = $('<p id="saving-text" style="padding-bottom: 8px"> Saving... </p>');
$("#comment-form-main .imagebar").prepend(saving_text);
$("#comment-form-main .imagebar p").not("#saving-text").hide();

Expand All @@ -156,7 +156,7 @@ class Editor {

$('#'+comment_temp_id).find('.btn-toolbar').find(".save-button").find("i").removeClass("fa fa-save").addClass("fas fa-sync fa-spin");

let saving_text = $('<p id="saving-text"> Saving... </p>');
let saving_text = $('<p id="saving-text" style="padding-bottom: 8px"> Saving... </p>');
$('#'+comment_temp_id).find('.'+imager_bar).prepend(saving_text);
$('#'+comment_temp_id).find('.'+imager_bar).find("p").not("#saving-text").hide();

Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/editorToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ $(function() {
$(this).find("i").toggleClass("fa fa-save fas fa-sync fa-spin");

//changing the text from "Upload an image" to "Saving..."
let saving_text = $('<p id="saving-text"> Saving... </p>');
let saving_text = $('<p id="saving-text" style="padding-bottom: 8px"> Saving... </p>');
$("#comment-form-main .imagebar").prepend(saving_text);
$("#comment-form-main .imagebar p").not("#saving-text").hide();

Expand All @@ -120,7 +120,7 @@ $(function() {
$(this).find("i").toggleClass("fa fa-save fas fa-sync fa-spin");

//changing the text from "Upload an image" to "Saving..."
let saving_text = $('<p id="saving-text"> Saving... </p>');
let saving_text = $('<p id="saving-text" style="padding-bottom: 8px"> Saving... </p>');
$('#'+comment_reply_id).find(".imagebar").prepend(saving_text);
$('#'+comment_reply_id).find(".imagebar p").not("#saving-text").hide();

Expand Down

0 comments on commit 338859f

Please sign in to comment.