UI/UX: Adiciona botão na barra de busca para expandir/recolher opções de filtragem (tags)

This commit is contained in:
2026-06-05 19:21:45 +00:00
parent ecf99a23eb
commit 7a2ba56699
3 changed files with 18 additions and 1 deletions
+12
View File
@@ -763,6 +763,18 @@ const initApp = () => {
renderHistory();
});
// Alternar (expandir/recolher) as tags
const btnToggleSidebarTags = document.getElementById('btnToggleSidebarTags');
if (btnToggleSidebarTags && sidebarTags) {
btnToggleSidebarTags.addEventListener('click', () => {
if (sidebarTags.style.display === 'none') {
sidebarTags.style.display = 'flex';
} else {
sidebarTags.style.display = 'none';
}
});
}
// Filtro por tags
sidebarTags.addEventListener('click', (e) => {
const tagBtn = e.target.closest('.tag-filter');