From 90f8028683c081ef6df9b4ef974c6c002f72e593 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Tue, 15 Jul 2025 12:02:23 +0200 Subject: [PATCH] Restored armorSlots when empty and added localization --- lang/en.json | 1 + styles/less/sheets/actors/character/sidebar.less | 11 +++++------ templates/sheets/actors/character/sidebar.hbs | 11 ++++++++++- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/lang/en.json b/lang/en.json index 96f5a9dd..a2d4bfd8 100755 --- a/lang/en.json +++ b/lang/en.json @@ -1138,6 +1138,7 @@ "plural": "Traits" }, "activeEffects": "Active Effects", + "armorSlots": "Armor Slots", "attack": "Attack", "basics": "Basics", "bonus": "Bonus", diff --git a/styles/less/sheets/actors/character/sidebar.less b/styles/less/sheets/actors/character/sidebar.less index e2f6b5ad..e8662f86 100644 --- a/styles/less/sheets/actors/character/sidebar.less +++ b/styles/less/sheets/actors/character/sidebar.less @@ -186,7 +186,7 @@ position: relative; top: 30px; height: 22px; - width: 94px; + width: 95px; border-radius: 3px; background: light-dark(@dark-blue, @golden); @@ -259,23 +259,18 @@ &::-webkit-progress-bar { border: none; background: light-dark(transparent, @dark-blue); - } &::-webkit-progress-value { background: @gradient-stress; - } &.stress-color::-webkit-progress-value { background: @gradient-stress; - } &::-moz-progress-bar { background: @gradient-stress; - } &.stress-color::-moz-progress-bar { background: @gradient-stress; - } } } @@ -283,6 +278,10 @@ .status-number { justify-items: center; + &.armor-slots { + width: 95px; + } + .status-value { position: relative; display: flex; diff --git a/templates/sheets/actors/character/sidebar.hbs b/templates/sheets/actors/character/sidebar.hbs index ea89dad2..51816443 100644 --- a/templates/sheets/actors/character/sidebar.hbs +++ b/templates/sheets/actors/character/sidebar.hbs @@ -61,7 +61,16 @@ max='{{document.system.armorScore}}' >
-

Armor Slots

+

{{localize "DAGGERHEART.GENERAL.armorSlots"}}

+
+ + {{else}} +
+
+

-

+
+
+

{{localize "DAGGERHEART.GENERAL.armorSlots"}}

{{/if}}