From f70ce34acc0e8971b3e23d69a1e985298a953be8 Mon Sep 17 00:00:00 2001 From: Aaron Lutomski Date: Sat, 16 May 2026 21:06:35 -0700 Subject: [PATCH] Fixes for roll chat cards and info links --- css/deltagreen.css | 27 ++++++++++++++ module/roll/roll.js | 10 ++++-- templates/actor/parts/about-tab.html | 53 ++++++++++++++-------------- templates/roll/percentile-roll.hbs | 28 ++++++++------- 4 files changed, 77 insertions(+), 41 deletions(-) diff --git a/css/deltagreen.css b/css/deltagreen.css index 58791d7..6c88506 100644 --- a/css/deltagreen.css +++ b/css/deltagreen.css @@ -737,6 +737,33 @@ div .exhausted-section { margin-bottom: 5px; } +.tab.about .dg-about-links { + gap: 0.5rem; + margin-bottom: 1rem; +} + +.tab.about .dg-about-links a { + display: inline-flex; + align-items: center; + gap: 0.5rem; + width: fit-content; + max-width: 100%; +} + +.tab.about .dg-about-links a i { + flex: 0 0 auto; +} + +.tab.about .dg-about-links a span { + flex: 1 1 auto; + line-height: 1.4; + text-align: left; +} + +.tab.about .dg-about-legal p { + margin: 0.5rem 0; +} + textarea.wounds { resize: none; height: 100px; diff --git a/module/roll/roll.js b/module/roll/roll.js index 80f7fbc..db002e4 100644 --- a/module/roll/roll.js +++ b/module/roll/roll.js @@ -594,10 +594,11 @@ export class DGLethalityRoll extends DGPercentileRoll { } let html = ""; - html += `
`; + html += `
`; html += `
`; html += `
${resultString}
`; html += `
`; + html += `
`; html += `
`; html += `
`; html += `
`; @@ -626,10 +627,12 @@ export class DGLethalityRoll extends DGPercentileRoll { html += ` `; html += `
`; html += `
`; + html += `
`; html += `
`; html += `

${this.total} (${ nonLethalDamage.total } ${game.i18n.localize("DG.Roll.Damage")})

`; + html += `
`; html += `
`; return this.toMessage({ content: html, flavor: label }); @@ -788,10 +791,11 @@ export class DGSanityDamageRoll extends DGRoll { )} For ${lowDie.formula} / ${highDie.formula}`; let html = ""; - html += `
`; + html += `
`; html += `
`; html += `
${lowDie.formula} / ${highDie.formula}
`; html += `
`; + html += `
`; html += `
`; html += `
`; html += `
`; @@ -819,8 +823,10 @@ export class DGSanityDamageRoll extends DGRoll { html += ` `; html += `
`; html += `
`; + html += `
`; html += `
`; html += `

${lowResult} / ${highResult}

`; + html += `
`; html += `
`; return this.toMessage({ content: html, flavor }); } diff --git a/templates/actor/parts/about-tab.html b/templates/actor/parts/about-tab.html index c2f07b5..607354c 100644 --- a/templates/actor/parts/about-tab.html +++ b/templates/actor/parts/about-tab.html @@ -3,31 +3,32 @@ data-tab="about">
-
-
- - {{localize 'DG.About.OnlineHelp'}} - -
-
- - {{localize 'DG.About.OnlineBugTracker'}} - -
-
- - {{localize 'DG.About.Changelog'}} - -
-
-

{{localize 'DG.About.Copyright'}}

-

{{{localize 'DG.About.License'}}}

-
+ + +
diff --git a/templates/roll/percentile-roll.hbs b/templates/roll/percentile-roll.hbs index 1c83e39..cef8a41 100644 --- a/templates/roll/percentile-roll.hbs +++ b/templates/roll/percentile-roll.hbs @@ -1,18 +1,20 @@ -
+
{{resultString}}
-
-
-
- {{formula}} - {{total}} -
-
    -
  1. {{total}}
  2. -
-
-
+
+
+
+
+ {{formula}} + {{total}} +
+
    +
  1. {{total}}
  2. +
+
+
+

{{total}}

@@ -27,4 +29,4 @@
{{/if}} -
\ No newline at end of file +