From c527a3b32aace01779a95bfc7414556ffbb31bbe Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Mon, 29 Sep 2025 04:11:40 -0400 Subject: [PATCH] Use 2d12 as hover icon for player rolls --- styles/less/global/inventory-item.less | 2 ++ templates/sheets/global/partials/inventory-item-V2.hbs | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/styles/less/global/inventory-item.less b/styles/less/global/inventory-item.less index e221f4e7..297aaac5 100644 --- a/styles/less/global/inventory-item.less +++ b/styles/less/global/inventory-item.less @@ -96,7 +96,9 @@ } .roll-img { + object-fit: contain; opacity: 0; + padding: 2px; } } diff --git a/templates/sheets/global/partials/inventory-item-V2.hbs b/templates/sheets/global/partials/inventory-item-V2.hbs index a4ecec3a..5fc75258 100644 --- a/templates/sheets/global/partials/inventory-item-V2.hbs +++ b/templates/sheets/global/partials/inventory-item-V2.hbs @@ -23,7 +23,11 @@ Parameters: (hasProperty item "toChat" ) "toChat" "editDoc" ) }}' {{#unless hideTooltip}} {{#if (eq type 'attack' )}} data-tooltip="#attack#{{item.actor.uuid}}" {{else}} data-tooltip="#item#{{item.uuid}}" {{/if}} {{/unless}}> - d20 + {{#if @root.isNPC}} + d20 + {{else}} + 2d12 + {{/if}} {{!-- Name & Tags --}}