fix styles for extensions menu

This commit is contained in:
RossAscends
2023-05-18 02:25:47 +09:00
parent 3951049e03
commit 2e86775d4a
7 changed files with 45 additions and 20 deletions

View File

@@ -29,7 +29,10 @@ async function doDiceRoll() {
function addDiceRollButton() {
const buttonHtml = `
<div id="roll_dice" class="fa-solid fa-dice list-group-item" title="Roll the dice" /></div>
<div id="roll_dice" class="list-group-item flex-container flexGap5">
<div class="fa-solid fa-dice extensionsMenuExtensionButton" title="Roll Dice" /></div>
Roll Dice
</div>
`;
const dropdownHtml = `
<div id="dice_dropdown">
@@ -55,7 +58,7 @@ function addDiceRollButton() {
button.hide();
let popper = Popper.createPopper(button.get(0), dropdown.get(0), {
placement: 'left-end',
placement: 'bottom',
});
$(document).on('click touchend', function (e) {

View File

@@ -1,5 +1,5 @@
#roll_dice {
order: 100;
/* order: 100; */
/* width: 40px;
height: 40px;
margin: 0;
@@ -11,7 +11,7 @@
opacity: 0.7;
display: flex;
align-items: center;
justify-content: center;
/* justify-content: center; */
}