Skip to content

Commit 9dc86d0

Browse files
committed
fix(web): ensure filters start collapsed on mobile
1 parent 42065dd commit 9dc86d0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

web/src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function renderCategoryFilters() {
280280
container.appendChild(expandBtn);
281281

282282
const expandableContainer = document.createElement('div');
283-
expandableContainer.className = 'filter-pills-expandable';
283+
expandableContainer.className = 'filter-pills-expandable collapsed';
284284

285285
otherCategories.forEach(category => {
286286
const pill = document.createElement('button');
@@ -345,7 +345,7 @@ function renderMoodFilters() {
345345
container.appendChild(expandBtn);
346346

347347
const expandableContainer = document.createElement('div');
348-
expandableContainer.className = 'filter-pills-expandable';
348+
expandableContainer.className = 'filter-pills-expandable collapsed';
349349

350350
otherMoods.forEach(mood => {
351351
expandableContainer.appendChild(createMoodPill(mood));

web/src/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,9 @@ body::before {
712712
display: none;
713713
}
714714

715-
/* Expandable pills container - inline on desktop */
716-
.filter-pills-expandable {
715+
/* Expandable pills container - inline on desktop (ignore collapsed state) */
716+
.filter-pills-expandable,
717+
.filter-pills-expandable.collapsed {
717718
display: contents;
718719
}
719720

0 commit comments

Comments
 (0)