From 7a2ba56699fed3a588c6c53a54c1dac437964d78 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Fri, 5 Jun 2026 19:21:45 +0000 Subject: [PATCH] =?UTF-8?q?UI/UX:=20Adiciona=20bot=C3=A3o=20na=20barra=20d?= =?UTF-8?q?e=20busca=20para=20expandir/recolher=20op=C3=A7=C3=B5es=20de=20?= =?UTF-8?q?filtragem=20(tags)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/app.js | 12 ++++++++++++ public/index.html | 5 +++++ public/sw.js | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index a57f61b..ab955ab 100644 --- a/public/app.js +++ b/public/app.js @@ -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'); diff --git a/public/index.html b/public/index.html index a4b020c..7cc6523 100644 --- a/public/index.html +++ b/public/index.html @@ -53,6 +53,11 @@ + diff --git a/public/sw.js b/public/sw.js index 290395b..2608007 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = 'camila-ai-v7'; +const CACHE_NAME = 'camila-ai-v8'; const urlsToCache = [ '/', '/index.html',