mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
Fix dice extension menu position
This commit is contained in:
parent
8ce2af16fb
commit
1d780feb08
@ -374,7 +374,7 @@ async function addExtensionsButtonAndMenu() {
|
|||||||
|
|
||||||
$('html').on('click', function (e) {
|
$('html').on('click', function (e) {
|
||||||
const clickTarget = $(e.target);
|
const clickTarget = $(e.target);
|
||||||
const noCloseTargets = ['#sd_gen', '#extensionsMenuButton'];
|
const noCloseTargets = ['#sd_gen', '#extensionsMenuButton', '#roll_dice'];
|
||||||
if (dropdown.is(':visible') && !noCloseTargets.some(id => clickTarget.closest(id).length > 0)) {
|
if (dropdown.is(':visible') && !noCloseTargets.some(id => clickTarget.closest(id).length > 0)) {
|
||||||
$(dropdown).fadeOut(animation_duration);
|
$(dropdown).fadeOut(animation_duration);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user