fix: resolve login visibility issues and improve sidebar layout
Corrected element ID mismatches between index.html and auth.js. Improved sidebar CSS to handle collapsed state and logo visibility correctly.
This commit is contained in:
@@ -124,7 +124,7 @@ class AuthManager {
|
||||
}
|
||||
|
||||
showLogin() {
|
||||
const loginScreen = document.getElementById('login-screen');
|
||||
const loginScreen = document.getElementById('auth-page');
|
||||
const dashboard = document.getElementById('dashboard');
|
||||
|
||||
if (loginScreen) loginScreen.style.display = 'flex';
|
||||
@@ -139,7 +139,7 @@ class AuthManager {
|
||||
if (errorElement) errorElement.style.display = 'none';
|
||||
|
||||
// Reset button
|
||||
const loginBtn = document.querySelector('.login-btn');
|
||||
const loginBtn = document.getElementById('login-btn');
|
||||
if (loginBtn) {
|
||||
loginBtn.innerHTML = '<i class="fas fa-sign-in-alt"></i> Sign In';
|
||||
loginBtn.disabled = false;
|
||||
@@ -147,7 +147,7 @@ class AuthManager {
|
||||
}
|
||||
|
||||
showDashboard() {
|
||||
const loginScreen = document.getElementById('login-screen');
|
||||
const loginScreen = document.getElementById('auth-page');
|
||||
const dashboard = document.getElementById('dashboard');
|
||||
|
||||
if (loginScreen) loginScreen.style.display = 'none';
|
||||
|
||||
Reference in New Issue
Block a user