From 736771fc98d7c5aa32c0529ae9b1fe82e02ddc56 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Mon, 22 May 2023 11:47:35 +0300 Subject: [PATCH] Fix display reset for message buttons of last_mes --- public/script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/script.js b/public/script.js index 7f5eb6294..f044b454c 100644 --- a/public/script.js +++ b/public/script.js @@ -1503,7 +1503,7 @@ class StreamingProcessor { return; } - $(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({ 'display': 'block' }); + $(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({ 'display': '' }); $(`#chat .mes[mesid="${messageId}"] .mes_buttons`).css({ 'display': 'none' }); } @@ -1513,7 +1513,7 @@ class StreamingProcessor { } $(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({ 'display': 'none' }); - $(`#chat .mes[mesid="${messageId}"] .mes_buttons`).css({ 'display': 'block' }); + $(`#chat .mes[mesid="${messageId}"] .mes_buttons`).css({ 'display': '' }); } onStartStreaming(text) { @@ -3997,7 +3997,7 @@ function messageEditDone(div) { mesBlock.find(".mes_text").empty(); mesBlock.find(".mes_edit_buttons").css("display", "none"); - mesBlock.find(".mes_buttons").css("display", "inline-block"); + mesBlock.find(".mes_buttons").css("display", ""); mesBlock.find(".mes_text").append( messageFormatting( text, @@ -6147,7 +6147,7 @@ $(document).ready(function () { $(this).closest(".mes_block").find(".mes_text").empty(); $(this).closest(".mes_edit_buttons").css("display", "none"); - $(this).closest(".mes_block").find(".mes_buttons").css("display", "inline-block"); + $(this).closest(".mes_block").find(".mes_buttons").css("display", ""); $(this) .closest(".mes_block") .find(".mes_text")