Fixed so enriched buttons are inline by default. Can be set to 'inline:true' to make them fit with the text better (#1068)

This commit is contained in:
WBHarry 2025-08-23 13:49:10 +02:00 committed by GitHub
parent f76515eac1
commit 936c96a1be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 30 additions and 7 deletions

View file

@ -36,7 +36,7 @@ function getDualityMessage(roll, flavor) {
const dualityElement = document.createElement('span');
dualityElement.innerHTML = `
<button class="duality-roll-button"
<button class="duality-roll-button${roll.inline ? ' inline' : ''}"
data-title="${label}"
data-label="${dataLabel}"
data-reaction="${roll.reaction ? 'true' : 'false'}"