From d3e4638233e7b79254576adac6e931fd30c56c8f Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Wed, 15 Apr 2026 22:42:37 -0400 Subject: [PATCH] =?UTF-8?q?TOOLTIPS:=20wallet=20tokens=20refactor=20?= =?UTF-8?q?=E2=80=94=20.token-tooltip=20=E2=86=92=20.tt=20+=20child=20clas?= =?UTF-8?q?ses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _applet-wallet-tokens.html: all 6 token blocks (pass, coin, free×2, tithe×2) updated to .tt wrapper + .tt-title / .tt-description / .tt-shoptalk / .tt-expiry child classes; small→p.tt-shoptalk, p.expiry→p.tt-expiry - wallet.js: querySelector('.token-tooltip') → querySelector('.tt') in initWalletTooltips 13 FTs green (trinket_carte_blanche + game_kit + gameboard) Co-Authored-By: Claude Sonnet 4.6 --- .../dashboard/static/apps/dashboard/wallet.js | 2 +- .../_partials/_applet-wallet-tokens.html | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/apps/dashboard/static/apps/dashboard/wallet.js b/src/apps/dashboard/static/apps/dashboard/wallet.js index 135f83b..6c4b6bd 100644 --- a/src/apps/dashboard/static/apps/dashboard/wallet.js +++ b/src/apps/dashboard/static/apps/dashboard/wallet.js @@ -69,7 +69,7 @@ function initWalletTooltips() { if (!portal) return; document.querySelectorAll('.wallet-tokens .token').forEach(token => { - const tooltip = token.querySelector('.token-tooltip'); + const tooltip = token.querySelector('.tt'); if (!tooltip) return; token.addEventListener('mouseenter', () => { diff --git a/src/templates/apps/wallet/_partials/_applet-wallet-tokens.html b/src/templates/apps/wallet/_partials/_applet-wallet-tokens.html index 02e4ff5..041bcae 100644 --- a/src/templates/apps/wallet/_partials/_applet-wallet-tokens.html +++ b/src/templates/apps/wallet/_partials/_applet-wallet-tokens.html @@ -7,25 +7,25 @@ {% if pass_token %}
-
-

{{ pass_token.tooltip_name }}

-

{{ pass_token.tooltip_description }}

+
+

{{ pass_token.tooltip_name }}

+

{{ pass_token.tooltip_description }}

{% if pass_token.tooltip_shoptalk %} - {{ pass_token.tooltip_shoptalk }} +

{{ pass_token.tooltip_shoptalk }}

{% endif %} -

{{ pass_token.tooltip_expiry }}

+

{{ pass_token.tooltip_expiry }}

{% elif coin %}
-
-

{{ coin.tooltip_name }}

-

{{ coin.tooltip_description }}

+
+

{{ coin.tooltip_name }}

+

{{ coin.tooltip_description }}

{% if coin.tooltip_shoptalk %} - {{ coin.tooltip_shoptalk }} +

{{ coin.tooltip_shoptalk }}

{% endif %} -

{{ coin.tooltip_expiry }}

+

{{ coin.tooltip_expiry }}

{% endif %} @@ -33,23 +33,23 @@ {% with free_tokens.0 as token %}
-
-

{{ token.tooltip_name }}{% if free_count > 1 %} (×{{ free_count }}){% endif %}

-

{{ token.tooltip_description }}

+
+

{{ token.tooltip_name }}{% if free_count > 1 %} (×{{ free_count }}){% endif %}

+

{{ token.tooltip_description }}

{% if token.tooltip_shoptalk %} - {{ token.tooltip_shoptalk }} +

{{ token.tooltip_shoptalk }}

{% endif %} -

{{ token.tooltip_expiry }}

+

{{ token.tooltip_expiry }}

{% endwith %} {% else %}
-
-

Free Token

-

0 owned

-

find one around

+
+

Free Token

+

0 owned

+

find one around

{% endif %} @@ -57,20 +57,20 @@ {% with tithe_tokens.0 as token %}
-
-

{{ token.tooltip_name }}{% if tithe_count > 1 %} (×{{ tithe_count }}){% endif %}

-

{{ token.tooltip_description }}

-

{{ token.tooltip_expiry }}

+
+

{{ token.tooltip_name }}{% if tithe_count > 1 %} (×{{ tithe_count }}){% endif %}

+

{{ token.tooltip_description }}

+

{{ token.tooltip_expiry }}

{% endwith %} {% else %}
-
-

Tithe Token

-

0 owned

-

purchase one above

+
+

Tithe Token

+

0 owned

+

purchase one above

{% endif %}