increases drop target for equipment and also fixes display of item icons
parent
d0c9fb56fc
commit
2e217abe8f
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -46,6 +46,11 @@
|
|||
|
||||
.equipment {
|
||||
height: 32px;
|
||||
|
||||
.icon {
|
||||
width: 32px;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue