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 %}