From 2e217abe8fb1f6c5e685356bf9ce7c993f9e1bba Mon Sep 17 00:00:00 2001 From: macniel Date: Sat, 25 Oct 2025 10:26:47 +0200 Subject: [PATCH] increases drop target for equipment and also fixes display of item icons --- src/module/sheets/character/equipment.mjs | 2 +- src/style/organisms/character-tabs/_inventory.scss | 5 +++++ src/templates/ui/partial-equipment-button.hbs | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/module/sheets/character/equipment.mjs b/src/module/sheets/character/equipment.mjs index b051141c..6e3b732a 100644 --- a/src/module/sheets/character/equipment.mjs +++ b/src/module/sheets/character/equipment.mjs @@ -130,7 +130,7 @@ export default { new foundry.applications.ux.DragDrop.implementation({ dragSelector: ".inventory-table .equipment", - dropSelector: ".inventory-table", + dropSelector: ".tab", permissions: { dragstart: thisObject._canDragStart.bind(thisObject), drop: thisObject._canDragDrop.bind(thisObject) diff --git a/src/style/organisms/character-tabs/_inventory.scss b/src/style/organisms/character-tabs/_inventory.scss index 62d8f8c2..97abd3e5 100644 --- a/src/style/organisms/character-tabs/_inventory.scss +++ b/src/style/organisms/character-tabs/_inventory.scss @@ -46,6 +46,11 @@ .equipment { height: 32px; + + .icon { + width: 32px; + padding: 0; + } } } diff --git a/src/templates/ui/partial-equipment-button.hbs b/src/templates/ui/partial-equipment-button.hbs index 63c733a8..7f7d0ac6 100644 --- a/src/templates/ui/partial-equipment-button.hbs +++ b/src/templates/ui/partial-equipment-button.hbs @@ -12,7 +12,7 @@ {{#each this}} - + {{this.name}} {{this.quantity}} {{#if this.worn}}({{/if}}{{this.weight}}{{#if this.worn}}){{/if}}