Skip to content

Commit 6a151d1

Browse files
committed
Hide open scaffold/weight/verified filter for bash-only
1 parent d81de0c commit 6a151d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/leaderboardFilters.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,10 @@ function updateFilterVisibility(leaderboardName) {
273273
const mainFiltersContainer = document.getElementById('main-filters');
274274
const tagFiltersContainer = document.getElementById('tag-filters');
275275

276-
// Show all filters for all leaderboards - consistent interface
277-
if (mainFiltersContainer) mainFiltersContainer.style.display = '';
276+
const isBashOnly = leaderboardName.toLowerCase() === 'bash-only';
277+
278+
// Hide main filters (open scaffold/weight/checked) for bash-only, but keep tag filters visible
279+
if (mainFiltersContainer) mainFiltersContainer.style.display = isBashOnly ? 'none' : '';
278280
if (tagFiltersContainer) tagFiltersContainer.style.display = '';
279281
}
280282

0 commit comments

Comments
 (0)