increases drop target for equipment and also fixes display of item icons

pull/61/head 0.2.5
macniel 2025-10-25 10:26:47 +02:00
parent d0c9fb56fc
commit 2e217abe8f
3 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -46,6 +46,11 @@
.equipment {
height: 32px;
.icon {
width: 32px;
padding: 0;
}
}
}

View File

@ -12,7 +12,7 @@
{{#each this}}
<tr class="equipment" data-item-id="{{this.id}}" draggable="true" data-action="openEmbeddedDocument">
<td class="icon"><img alt="" src="{{this.icon}}" width="32" height="32"></td>
<td class="icon"><img alt="" src="{{this.icon}}"></td>
<td class="name">{{this.name}}</td>
<td class="quantity">{{this.quantity}}</td>
<td class="weight">{{#if this.worn}}({{/if}}{{this.weight}}{{#if this.worn}}){{/if}}</td>