reforma da interface da página de projetos
Deploy / Deploy (push) Successful in 1m35s Details

This commit is contained in:
JotaChina 2025-12-15 19:05:16 -03:00
parent e9c9fd5875
commit 3c8e17ab80
1 changed files with 1 additions and 5 deletions

View File

@ -619,13 +619,9 @@ document.addEventListener('DOMContentLoaded', () => {
const s = parseInt(c.dataset.stars || 0);
const k = c.dataset.key; // Pega o que salvamos ("Ab", "Cm", etc)
const matchG = (currentGenre === 'all' || g === currentGenre);
const matchS = (currentMinStars === 'all' || s === parseInt(currentMinStars)); // Lembra do === da resposta anterior
// Novo Match de Tom
// A lógica aqui é simples: se for 'all', passa. Se não, tem que ser igual.
const matchK = (currentKey === 'all' || k === currentKey);
const matchG = (currentGenre === 'all' || g === currentGenre);
const matchS = (currentMinStars === 'all' || s === parseInt(currentMinStars));
const matchK = (currentKey === 'all' || k === currentKey);
col.style.display = (matchG && matchS && matchK) ? 'block' : 'none';
});