From 02e535775a1f2ec821fb9c40d050f904034285e5 Mon Sep 17 00:00:00 2001 From: nsalyzyn Date: Thu, 18 Dec 2025 16:45:42 -0700 Subject: [PATCH] Moving the draggable spots to internal divs and images --- module/applications/sheets/actors/character.mjs | 2 +- templates/sheets/global/partials/inventory-item-V2.hbs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/applications/sheets/actors/character.mjs b/module/applications/sheets/actors/character.mjs index 51df2fc9..0b884b99 100644 --- a/module/applications/sheets/actors/character.mjs +++ b/module/applications/sheets/actors/character.mjs @@ -46,7 +46,7 @@ export default class CharacterSheet extends DHBaseActorSheet { }, dragDrop: [ { - dragSelector: '[data-item-id][draggable="true"]', + dragSelector: '[data-item-id] [draggable="true"]', dropSelector: null } ], diff --git a/templates/sheets/global/partials/inventory-item-V2.hbs b/templates/sheets/global/partials/inventory-item-V2.hbs index 91f8d581..d948f49e 100644 --- a/templates/sheets/global/partials/inventory-item-V2.hbs +++ b/templates/sheets/global/partials/inventory-item-V2.hbs @@ -18,24 +18,24 @@ Parameters: --}}
  • + data-action-id="{{item.id}}" {{/if}} data-item-uuid="{{item.uuid}}" data-type="{{type}}" data-no-compendium-edit="{{noCompendiumEdit}}">
    {{!-- Image --}}
    - + {{#if (or item.system.actionsList.size item.system.actionsList.length item.actionType)}} {{#if @root.isNPC}} - d20 + d20 {{else}} - 2d12 + 2d12 {{/if}} {{/if}}
    {{!-- Name & Tags --}} -
    +
    {{!-- Item Name --}} {{localize item.name}} {{#unless (or noExtensible (not item.system.description))}}{{/unless}}