Hauteur des fenêtre 'fit-content'

Evite d'avoir tout le temps des tailles mal ajustées
This commit is contained in:
Vincent Vandemeulebrouck
2022-11-16 02:46:26 +01:00
parent 64320fc260
commit 1e5a99e009
14 changed files with 18 additions and 20 deletions

View File

@ -2349,7 +2349,7 @@ export class RdDActor extends Actor {
const dialog = await RdDRoll.create(this, rollData,
{
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-sort.html',
options: { height: 600 },
options: { height: 'fit-content' },
close: html => { this.currentTMR.maximize() } // Re-display TMR
},
{
@ -2674,7 +2674,7 @@ export class RdDActor extends Actor {
const dialog = await RdDRoll.create(this, artData,
{
html: `systems/foundryvtt-reve-de-dragon/templates/dialog-roll-${oeuvre.type}.html`,
options: { height: 500, }
options: { height: 'fit-content', }
},
{
name: `jet-${artData.art}`,
@ -2814,7 +2814,7 @@ export class RdDActor extends Actor {
const dialog = await RdDRoll.create(this, meditationData,
{
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-meditation.html',
options: { height: 575, }
options: { height: 'fit-content', }
},
{
name: 'jet-meditation',
@ -2891,7 +2891,7 @@ export class RdDActor extends Actor {
const dialog = await RdDRoll.create(this, rollData,
{
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-signedraconique.html',
options: { height: 600 },
options: { height: 'fit-content' },
close: html => { this.currentTMR.maximize() } // Re-display TMR
},
{