From 2b645f5e370f1fbee3b4010b9cacc94982471fe0 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Wed, 22 Jul 2026 14:36:30 +0200 Subject: [PATCH] Show the user's balance in the navbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a navbar-balance span next to the username, kept in sync by the existing refreshMe() calls (login, after a bet, after a withdrawal, manual refresh) — no new endpoint needed, /users/me already returns balance_sats. Co-Authored-By: Claude Sonnet 5 --- app/static/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/static/index.html b/app/static/index.html index b572765..fac63fc 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -113,6 +113,7 @@ .app-navbar-top .brand { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; } .app-navbar-account { display: flex; align-items: center; gap: 10px; } .app-navbar-account .name { font-weight: 600; font-size: 0.85rem; } + .app-navbar-account .navbar-balance { font-weight: 600; font-size: 0.85rem; color: var(--color-primary); white-space: nowrap; } .app-navbar-tabs { max-width: 480px; margin: 0 auto; padding: 0 12px; display: flex; } .app-navbar-tabs button.navbar-tab { @@ -293,6 +294,7 @@ PLM Lottery