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:
2026-10-26 14:20:55 -03:00
parent 67a1cb14a0
commit 6bf2a72d08
14 changed files with 316 additions and 78 deletions
+7 -3
View File
@@ -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';
}
});
}