Skip to content

Commit 7c7ae1b

Browse files
committed
Empty url means selecting all
1 parent 554e3f8 commit 7c7ae1b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

_includes/filter_widget.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,18 @@
169169
}
170170
/* Ensure this is at the bottom of your style block */
171171
.is-hidden { display: none !important; }
172+
173+
/* Keeps the flex flow of the parent row */
174+
#extra-tag-container:not(.is-hidden) {
175+
display: contents !important;
176+
}
172177
</style>
173178

174179
<script>
175180
/** 1. On Load: Set state from URL and run filter **/
176181
document.addEventListener('DOMContentLoaded', function() {
177182
const params = new URLSearchParams(window.location.search);
178-
window.currentTag = params.get('tag'); // No fallback here ensures empty if missing
183+
window.currentTag = params.get('tag') || 'all';
179184

180185
const searchInput = document.getElementById('search-input');
181186
if (searchInput) searchInput.value = params.get('q') || '';

0 commit comments

Comments
 (0)