From 8868ecb6fcf3e66bd4a85be0458b2ea9b2232093 Mon Sep 17 00:00:00 2001
From: Reditus <33814724+ReditusDraco@users.noreply.github.com>
Date: Thu, 21 May 2026 13:18:32 +0100
Subject: [PATCH] =?UTF-8?q?Fix=20slot=20clicks:=20replace=20default('null'?=
=?UTF-8?q?)=20with=20tojson=20(fixes=20None=E2=86=92null=20JS=20error),?=
=?UTF-8?q?=20add=20transparent=20click=20overlay=20on=20filled=20slots?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/style.css | 8 ++++++++
templates/player_detail.html | 18 ++++++++++--------
2 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/static/style.css b/static/style.css
index 5aee999..345c543 100644
--- a/static/style.css
+++ b/static/style.css
@@ -512,6 +512,14 @@ td a:hover { text-decoration: underline; }
box-shadow: 0 0 0 2px rgba(201,162,78,0.2);
}
+.inv-slot-overlay {
+ position: absolute;
+ inset: 0;
+ z-index: 1;
+ cursor: pointer;
+ pointer-events: auto !important;
+}
+
.inv-slot-icon {
font-size: 22px;
line-height: 1;
diff --git a/templates/player_detail.html b/templates/player_detail.html
index 0070627..b6c9cc6 100644
--- a/templates/player_detail.html
+++ b/templates/player_detail.html
@@ -310,7 +310,8 @@
{% for i in range(max_main_slots) %}
{% set slot_item = inv.item_list | selectattr('position_index', 'equalto', i) | first %}
{% if slot_item %}
-
+
+
📦
{{ slot_item.template_id | truncate(20) }}
{% if slot_item.stack_size and slot_item.stack_size > 1 %}
@@ -330,7 +331,8 @@
{% endif %}
{% else %}
-
+
{% endif %}
@@ -349,7 +351,7 @@
{% set slot_label = equipped_slot_labels[slot_idx] if slot_idx in equipped_slot_labels else 'Slot ' ~ slot_idx %}
{% set slot_item = inv.item_list | selectattr('position_index', 'equalto', slot_idx) | first %}
{% if slot_item %}
-
+
{{ slot_label }}
📦
{{ slot_item.template_id | truncate(15) }}
@@ -390,7 +392,7 @@
{% for i in range(hotbar_max) %}
{% set slot_item = inv.item_list | selectattr('position_index', 'equalto', i) | first %}
{% if slot_item %}
-
+
📦
{{ slot_item.template_id | truncate(12) }}
{% if slot_item.stack_size and slot_item.stack_size > 1 %}
@@ -415,7 +417,7 @@
{% if inv.item_list %}
{% for item in inv.item_list %}
-
+
📦
{{ item.template_id | truncate(25) }}
{% if item.stack_size and item.stack_size > 1 %}
@@ -438,7 +440,7 @@
{% if inv.item_list %}
{% for item in inv.item_list %}
-
+
📦
{{ item.template_id | truncate(15) }}
{% if item.stack_size and item.stack_size > 1 %}
@@ -475,7 +477,7 @@
{% if inv.item_list %}
{% for item in inv.item_list %}
-
+
📦
{{ item.template_id | truncate(20) }}
{% if item.stack_size and item.stack_size > 1 %}
@@ -515,7 +517,7 @@
{% if inv.item_list %}
{% for item in inv.item_list %}
-
+
📦
{{ item.template_id | truncate(15) }}
{% if item.stack_size and item.stack_size > 1 %}