ericbirdsall
09/19/2024, 3:26 PMdialog.create
message when there are buttons, the buttons are pushed out of the viewable area, and that area isn't scrollable so you can't click the buttons. I can likely do a DOM hack to fix this, but wanted to make sure I wasn't missing somethingNathan L
09/19/2024, 3:31 PMNathan L
09/19/2024, 3:32 PMericbirdsall
09/19/2024, 3:40 PMericbirdsall
09/19/2024, 6:28 PMconst message = `
<p id="dialog-pop-up-p">Whatever your pop up says goes here</p>
<script>
const pElement = document.getElementById('dialog-pop-up-p');
const popUp = pElement.closest('[role="dialog"]');
if (popUp) {
popUp.style.height = '';
popUp.style.width = '';
<http://popUp.style.top|popUp.style.top> = '50%';
popUp.style.left = '50%';
popUp.style.transform = 'translate(-50%, -50%)'
}
</script>
`;
dialog.create({
buttons: ...,
title: ...,
message: message
});