Skip to content

Commit

Permalink
Fixed dialog width.
Browse files Browse the repository at this point in the history
ready to close #148
  • Loading branch information
QckSilverDragon committed Dec 15, 2024
1 parent 1d8004f commit dab18dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/src/roller/DialogD6.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ export class DialogD6 extends Dialog {
dialogData.actor = actor;

let html;
let dialogWidth = 300;
if (weapon && !falloutRoll) {
html = await renderTemplate("systems/fallout/templates/dialogs/dialogd6.hbs", dialogData);
dialogWidth = 465;
}
else {
html = `<div class="flexrow fallout-dialog">
Expand All @@ -119,7 +121,7 @@ export class DialogD6 extends Dialog {
},
},
close: () => { },
});
}, {width: dialogWidth});
d.render(true);
}

Expand Down

0 comments on commit dab18dd

Please sign in to comment.