From 96dd30a343e06c7d471392d7101ac76f114bd469 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Sat, 4 Apr 2026 19:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=89=E5=85=A8=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/style.css | 2 +- public/js/app.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/css/style.css b/public/css/style.css index dd22ca9..4f34a41 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -282,7 +282,7 @@ body { .btn-settings { width: 40px; height: 40px; - display: flex; + display: none; align-items: center; justify-content: center; border: 1px solid var(--border-color); diff --git a/public/js/app.js b/public/js/app.js index b583a56..051a508 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -192,6 +192,7 @@ function updateUserUI(username) { if (username) { user = username; + dom.btnSettings.style.display = 'flex'; dom.userSection.innerHTML = `
${escapeHtml(username)} @@ -201,6 +202,7 @@ document.getElementById('btnLogout').addEventListener('click', handleLogout); } else { user = null; + dom.btnSettings.style.display = 'none'; dom.userSection.innerHTML = ``; document.getElementById('btnLogin').addEventListener('click', openLoginModal); }