css fixes for power dialog

This commit is contained in:
2025-06-08 14:52:27 -05:00
parent b41fd8833b
commit 469fad5ba5
4 changed files with 143 additions and 57 deletions
+10 -4
View File
@@ -59,7 +59,7 @@ export class PowerFormApplication extends HandlebarsApplicationMixin(Application
width: 600,
height: 'auto',
},
classes: ['standard-form', 'mbSwade', 'mbSwadeForm', 'mbSwadePowerEffectsForm'],
classes: ['mbSwade', 'mbSwadeForm', 'mbSwadePowerEffectsForm'],
window: {
icon: 'fa-solid fa-hand-sparkles',
title: 'Apply Effect',
@@ -69,15 +69,14 @@ export class PowerFormApplication extends HandlebarsApplicationMixin(Application
static PARTS = {
header: {
template: templates['dialogHeader.html'],
classes: ['mbSwade', 'mbSwadeDialogHeader', 'flexrow'],
classes: ['mbSwade', 'mbSwadeDialogHeader', 'mbSwadePowerEffectsHeader'],
},
body: {
template: templates['powerDialog.html'],
classes: ['mbSwadePowerEffectsBody'],
classes: ['mbSwade', 'mbSwadePowerEffectsBody', 'scrollable'],
},
footer: {
template: 'templates/generic/form-footer.hbs',
classes: ['sheet-footer', 'flexrow'],
},
};
@@ -116,9 +115,16 @@ export class PowerFormApplication extends HandlebarsApplicationMixin(Application
modifier.choices[choice] = `${modifier.choices[choice]}${val}`;
}
}
if (modifier.isRadio) {
for (const choice in modifier.choices) {
let val = modifier.choices[choice];
modifier.choices[choice] = { text: val, checked: choice == modifier.default };
}
}
}
const data = {
name: this.powerEffect.name,
formId: foundry.utils.randomID(),
headerTitle: `${this.powerEffect.name} Effect`,
headerSubtitle: `Apply the effects from ${this.powerEffect.name}`,
icon: this.powerEffect.icon,