diff --git a/public/css/style.css b/public/css/style.css index b7020a4..b218e0b 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -330,9 +330,9 @@ body { /* ---- Global Refresh Button ---- */ .btn-refresh-global { - width: 32px; - height: 32px; - display: flex; + width: 40px; + height: 40px; + display: none; align-items: center; justify-content: center; background: var(--bg-card); @@ -341,20 +341,18 @@ body { color: var(--text-secondary); cursor: pointer; transition: all 0.25s ease; - margin-left: 4px; - padding: 0; } .btn-refresh-global:hover { border-color: var(--border-hover); color: var(--accent-emerald); background: rgba(16, 185, 129, 0.08); - transform: translateY(-1px); + transform: translateY(-2px); } .btn-refresh-global svg { - width: 16px; - height: 16px; + width: 20px; + height: 20px; } /* ---- Theme Switch ---- */ diff --git a/public/index.html b/public/index.html index e86d453..8f40c2c 100644 --- a/public/index.html +++ b/public/index.html @@ -155,6 +155,13 @@
+ - `; document.getElementById('btnLogout').addEventListener('click', handleLogout); - document.getElementById('btnGlobalRefresh').addEventListener('click', async () => { - const btn = document.getElementById('btnGlobalRefresh'); - const icon = btn.querySelector('svg'); - if (icon) icon.style.animation = 'spin 0.8s ease-in-out'; - - await Promise.all([ - fetchNetworkHistory(true), - fetchMetrics(true) - ]); - - if (icon) { - setTimeout(() => { - icon.style.animation = ''; - }, 800); - } - }); } else { user = null; - dom.btnSettings.style.display = 'none'; + if (dom.btnSettings) dom.btnSettings.style.display = 'none'; + if (dom.btnGlobalRefresh) dom.btnGlobalRefresh.style.display = 'none'; + dom.userSection.innerHTML = ``; document.getElementById('btnLogin').addEventListener('click', openLoginModal); }