From 84a0734305dbb5f7397f362d7f668419c31470e5 Mon Sep 17 00:00:00 2001 From: molilo Date: Thu, 18 Dec 2025 01:47:04 -0300 Subject: [PATCH] feat: change weapon hbs tooltip and increase box-shadow blur --- styles/less/ux/tooltip/tooltip.less | 8 ++++-- templates/ui/tooltip/weapon.hbs | 44 +++++++++++++---------------- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/styles/less/ux/tooltip/tooltip.less b/styles/less/ux/tooltip/tooltip.less index 88f8e52d..0f85cb50 100644 --- a/styles/less/ux/tooltip/tooltip.less +++ b/styles/less/ux/tooltip/tooltip.less @@ -50,8 +50,10 @@ aside[role='tooltip']:has(div.daggerheart.dh-style.tooltip) { .tags { display: flex; - gap: 10px; + gap: 5px 10px; padding-bottom: 16px; + flex-wrap: wrap; + justify-content: center; .tag { display: flex; @@ -142,7 +144,7 @@ aside[role='tooltip']:has(div.daggerheart.dh-style.tooltip) { } aside[role='tooltip'].locked-tooltip:has(div.daggerheart.dh-style.tooltip) { - box-shadow: 0 0 20px @golden-90; + box-shadow: 0 0 25px @golden-90; } .theme-light #tooltip:has(div.daggerheart.dh-style.tooltip), @@ -151,7 +153,7 @@ aside[role='tooltip'].locked-tooltip:has(div.daggerheart.dh-style.tooltip) { } .theme-light aside[role='tooltip'].locked-tooltip:has(div.daggerheart.dh-style.tooltip) { - box-shadow: 0 0 20px @dark-blue-90; + box-shadow: 0 0 25px @dark-blue-90; } #tooltip, diff --git a/templates/ui/tooltip/weapon.hbs b/templates/ui/tooltip/weapon.hbs index 3c2a1407..67287b6a 100644 --- a/templates/ui/tooltip/weapon.hbs +++ b/templates/ui/tooltip/weapon.hbs @@ -1,40 +1,36 @@ -
-

{{item.name}}

+
-
{{{description}}}
- -
-
- -
{{#if item.system.secondary}}{{localize "DAGGERHEART.ITEMS.Weapon.secondaryWeapon"}}{{else}}{{localize "DAGGERHEART.ITEMS.Weapon.primaryWeapon"}}{{/if}}
+

{{item.name}}

+
+
+ {{#if item.system.secondary}}{{localize "DAGGERHEART.ITEMS.Weapon.secondaryWeapon"}}{{else}}{{localize "DAGGERHEART.ITEMS.Weapon.primaryWeapon"}}{{/if}}
-
- +
{{#with (lookup config.GENERAL.burden item.system.burden) as | burden |}} -
{{localize burden.label}}
+ {{localize burden.label}} {{/with}}
{{#if item.system.attack.roll.trait}} -
- +
{{#with (lookup config.ACTOR.abilities item.system.attack.roll.trait) as | trait |}} -
{{localize trait.label}}
+ {{localize trait.label}} {{/with}}
{{/if}} -
- +
{{#with (lookup config.GENERAL.range item.system.attack.range) as | range |}} -
{{localize range.label}}
+ {{localize range.label}} {{/with}}
-
- -
{{{damageFormula item.system.attack}}}
-
-
- -
{{{damageSymbols item.system.attack.damage.parts}}}
+
+ {{{damageFormula item.system.attack}}} {{{damageSymbols item.system.attack.damage.parts}}}
+ {{#if description}} +
{{{description}}}
+ {{/if}} + +

+ {{localize "DAGGERHEART.UI.Tooltip.middleClick"}} +

\ No newline at end of file