mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix dice extension dropdown
This commit is contained in:
@ -59,7 +59,7 @@ function addDiceRollButton() {
|
|||||||
button.hide();
|
button.hide();
|
||||||
|
|
||||||
let popper = Popper.createPopper(button.get(0), dropdown.get(0), {
|
let popper = Popper.createPopper(button.get(0), dropdown.get(0), {
|
||||||
placement: 'bottom',
|
placement: 'top',
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click touchend', function (e) {
|
$(document).on('click touchend', function (e) {
|
||||||
@ -68,10 +68,10 @@ function addDiceRollButton() {
|
|||||||
if (target.is(button) && !dropdown.is(":visible")) {
|
if (target.is(button) && !dropdown.is(":visible")) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
dropdown.show(200);
|
dropdown.fadeIn(250);
|
||||||
popper.update();
|
popper.update();
|
||||||
} else {
|
} else {
|
||||||
dropdown.hide(200);
|
dropdown.fadeOut(250);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user