This commit is contained in:
Cay 2026-03-13 18:55:01 +00:00
parent 9bd68f6e53
commit ed4e488ce8
2 changed files with 9 additions and 5 deletions

View File

@ -392,8 +392,6 @@ body {
padding: 10px;
max-height: 340px;
overflow-y: auto;
}
#inventory-wrapper {
@ -402,8 +400,6 @@ body {
margin: 0 auto;
max-height: 340px;
overflow-y: auto;
}
.inventory-slot {

View File

@ -202,7 +202,15 @@ function initDrop() {
icon = inventoryItem.querySelector("img").src;
inventoryItem.remove();
/* Slot leeren statt löschen */
inventoryItem.classList.add("empty");
inventoryItem.removeAttribute("data-id");
inventoryItem.removeAttribute("data-level");
inventoryItem.removeAttribute("data-slot");
inventoryItem.innerHTML = "";
} else {
const slotItem = document.querySelector(
'.slot[data-slot="' + itemSlot + '"] img',