fix(ux): hide mobile-header on desktop, relocate theme button above user profile, enhance flyout menus without clipping, and resolve current problems (v3.8.15)
This commit is contained in:
@@ -21,22 +21,26 @@
|
||||
updateToggleButtons(theme);
|
||||
}
|
||||
|
||||
// 3. Actualizar iconos de los botones de toggle
|
||||
// 3. Actualizar iconos y textos de los botones de toggle
|
||||
function updateToggleButtons(theme) {
|
||||
const buttons = document.querySelectorAll('.theme-toggle-btn');
|
||||
buttons.forEach(btn => {
|
||||
const icon = btn.querySelector('i');
|
||||
if (icon) {
|
||||
if (theme === 'dark') {
|
||||
icon.className = 'bi bi-sun-fill';
|
||||
icon.className = 'bi bi-sun-fill text-warning';
|
||||
btn.setAttribute('aria-label', 'Cambiar a modo claro');
|
||||
btn.setAttribute('title', 'Modo Claro');
|
||||
} else {
|
||||
icon.className = 'bi bi-moon-stars-fill';
|
||||
icon.className = 'bi bi-moon-stars-fill text-primary';
|
||||
btn.setAttribute('aria-label', 'Cambiar a modo oscuro');
|
||||
btn.setAttribute('title', 'Modo Oscuro');
|
||||
}
|
||||
}
|
||||
const label = btn.querySelector('.theme-label');
|
||||
if (label) {
|
||||
label.textContent = theme === 'dark' ? 'Modo Claro' : 'Modo Oscuro';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user