From 9241dd6a6fba574767fa1e1df5b80c8674353ec6 Mon Sep 17 00:00:00 2001 From: canglan Date: Sun, 12 Jul 2026 02:14:25 +0800 Subject: [PATCH] fix: add appeal button, hide top bar when logged in so sidebar is clickable --- public/js/app.js | 2 ++ public/js/pages/dashboard.js | 1 + 2 files changed, 3 insertions(+) diff --git a/public/js/app.js b/public/js/app.js index ce9176e..037b57a 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -85,6 +85,7 @@ const App = { }, showPublic(page, param) { + document.getElementById('top-bar').classList.remove('hidden'); document.getElementById('top-auth').classList.remove('hidden'); document.getElementById('main-layout').classList.add('hidden'); const pub = document.getElementById('public-page'); @@ -94,6 +95,7 @@ const App = { }, showLayout() { + document.getElementById('top-bar').classList.add('hidden'); document.getElementById('top-auth').classList.add('hidden'); document.getElementById('public-page').classList.add('hidden'); document.getElementById('main-layout').classList.remove('hidden'); diff --git a/public/js/pages/dashboard.js b/public/js/pages/dashboard.js index b69df5b..bc8778d 100644 --- a/public/js/pages/dashboard.js +++ b/public/js/pages/dashboard.js @@ -7,6 +7,7 @@ const Dashboard = { document.getElementById('page-actions').innerHTML = ` + `; try {