mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-10 09:00:14 +01:00
Hide extra buttons when you click away
This commit is contained in:
parent
f4d1e2a46e
commit
b8939b8ccb
@ -8101,6 +8101,14 @@ jQuery(async function () {
|
||||
}, 150);
|
||||
})
|
||||
|
||||
$(document).on("click", function (e) {
|
||||
// Check if the click was outside the relevant elements
|
||||
if (!$(e.target).closest('.extraMesButtons, .extraMesButtonsHint').length) {
|
||||
$('.extraMesButtonsHint').show().css('opacity', .2); // Reset the hint button to its original state
|
||||
$('.extraMesButtons').hide().css('opacity', 0); // Hide the extra buttons and reset their opacity
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("click", ".mes_edit_cancel", function () {
|
||||
let text = chat[this_edit_mes_id]["mes"];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user