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

@ -49,7 +49,7 @@ export class DialogItemAchat extends Dialog {
constructor(html, venteData) {
const isConsommable = venteData.item.type == 'nourritureboisson' && venteData.acheteur?.isPersonnage();
let options = { classes: ["dialogachat"], width: 400, height: isConsommable ? 450 : 350, 'z-index': 99999 };
let options = { classes: ["dialogachat"], width: 400, height: 'fit-content', 'z-index': 99999 };
const actionAchat = venteData.prixLot > 0 ? "Acheter" : "Prendre";
const buttons = {};