From fd71ab3fb790a2df0ee695419e74e2a74b6f4e7d Mon Sep 17 00:00:00 2001 From: marvin9257 <72580196+marvin9257@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:30:14 -0600 Subject: [PATCH] fix: dialog labels should't wrap inputs --- src/module/entities/TwodsixActor.ts | 4 +- static/styles/twodsix.css | 5 +- static/templates/actors/damage-dialog.html | 96 +++++++------- static/templates/chat/initiative-dialog.html | 29 ++-- .../templates/chat/request-roll-dialog.html | 46 +++---- static/templates/chat/throw-dialog.html | 124 ++++++++---------- 6 files changed, 138 insertions(+), 166 deletions(-) diff --git a/src/module/entities/TwodsixActor.ts b/src/module/entities/TwodsixActor.ts index 742498e2a..4718c3579 100644 --- a/src/module/entities/TwodsixActor.ts +++ b/src/module/entities/TwodsixActor.ts @@ -1386,8 +1386,8 @@ async function getMoveNumber(itemData:TwodsixItem): Promise { window: {title: "TWODSIX.Actor.Items.QuantityToTransfer"}, content: `
` + itemData.name + `
`+ - `
`, + `
`, buttons: [ { action: "Transfer", diff --git a/static/styles/twodsix.css b/static/styles/twodsix.css index 824e661ed..73e2603d1 100644 --- a/static/styles/twodsix.css +++ b/static/styles/twodsix.css @@ -1834,7 +1834,7 @@ input.item-value-edit, input.joat-skill-input { gap: 1px; } -select.select-mod { +/*select.select-mod { width: 6em; margin-left: 1em; } @@ -1847,7 +1847,7 @@ select.select-difficulty { select.select-rolltype { width: 10em; margin-left: 1em; -} +}*/ span.total-output { text-align: center; @@ -4108,6 +4108,7 @@ multi-select.actor-sheet select { .standard-form .form-group > label { color: var(--s2d6-default-color); font-weight: normal; + flex: 2 1 0%; } .filepicker .favorites .path a.link[data-source]::before { diff --git a/static/templates/actors/damage-dialog.html b/static/templates/actors/damage-dialog.html index 2c091d488..03d3de309 100644 --- a/static/templates/actors/damage-dialog.html +++ b/static/templates/actors/damage-dialog.html @@ -1,55 +1,54 @@
{{#with stats}} -
- + {{/unless}} + {{localize "TWODSIX.Actor.Items.EffectiveArmor"}} + {{localize "TWODSIX.Damage.TotalDamage"}} + + + + + + {{#unless useCUData}} + + {{/unless}} + + {{#if useCUData}} + + {{/if}} + + + + {{#iff damageLabel "!==" "---"}} + + ({{localize damageLabel}}) + + + + + + {{/iff}} + +
-
-