From 969cedfc3d949af349c44a66cf5ef5718bfd24c7 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 10 Dec 2022 16:18:35 +0100 Subject: [PATCH] Fix espace avant boutons --- module/rdd-roll-resolution-table.js | 11 +++++------ styles/simple.css | 8 +++++--- templates/dialog-roll-alchimie.html | 3 +-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/module/rdd-roll-resolution-table.js b/module/rdd-roll-resolution-table.js index ed73babf..fcb456f9 100644 --- a/module/rdd-roll-resolution-table.js +++ b/module/rdd-roll-resolution-table.js @@ -115,17 +115,16 @@ export class RdDRollResolutionTable extends Dialog { rollData.finalLevel = this._computeFinalLevel(rollData); const htmlTable = await RdDResolutionTable.buildHTMLTable({ - carac:rollData.caracValue, - level: rollData.finalLevel + carac: rollData.caracValue, + level: rollData.finalLevel, + maxCarac: 20, + maxLevel: 10 }); // Mise à jour valeurs this.html.find("[name='carac']").val(rollData.caracValue); this.html.find(".roll-param-resolution").text(rollData.selectedCarac.value + " / " + Misc.toSignedString(rollData.finalLevel)); - this.html.find(".table-resolution").remove(); - this.html.find(".table-proba-reussite").remove(); - - this.html.find("div.placeholder-resolution").append(htmlTable) + this.html.find("div.placeholder-resolution").empty().append(htmlTable) } diff --git a/styles/simple.css b/styles/simple.css index 684aa273..463dbe2e 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -116,7 +116,11 @@ select, button, .item-checkbox, #sidebar, #players, #navigation #nav-toggle { padding: 0; } -.strong-text{ +section.window-content div.dialog-buttons { + margin-top: 1rem; +} + +.strong-text { font-weight: bold; } i:is(.fas, .far) { @@ -658,11 +662,9 @@ input:is(.blessure-premiers_soins, .blessure-soins_complets) { font-size: 0.8rem; text-align: right; } - .placeholder-ajustements { flex-direction: column; } - .table-resolution-carac { background-color: yellow; } diff --git a/templates/dialog-roll-alchimie.html b/templates/dialog-roll-alchimie.html index 2aa5612b..577c58c3 100644 --- a/templates/dialog-roll-alchimie.html +++ b/templates/dialog-roll-alchimie.html @@ -24,8 +24,7 @@ -
-
+