mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Animate dice dropdown
This commit is contained in:
@ -54,10 +54,10 @@ function addDiceRollButton() {
|
|||||||
if (target.is(button) && !dropdown.is(":visible")) {
|
if (target.is(button) && !dropdown.is(":visible")) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
dropdown.show();
|
dropdown.show(200);
|
||||||
popper.update();
|
popper.update();
|
||||||
} else {
|
} else {
|
||||||
dropdown.hide();
|
dropdown.hide(200);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
padding: 0.75rem 1.25rem;
|
padding: 0.75rem 1.25rem;
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
background-color: rgba(0,0,0,0.3);
|
background-color: rgba(0,0,0,0.5);
|
||||||
border: 1px solid rgba(0,0,0,0.7);
|
border: 1px solid rgba(0,0,0,0.7);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
Reference in New Issue
Block a user