Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix search filters being hidden (modrinth#1205)
* Fix search filters being hidden (#1165) Previously, `max-width` was used to hide the sidebar on mobile, which meant that at exactly 1024 pixels wide, the sidebar would be hidden. However, this breakpoint is also as a `min-width` other media queries, notably the ones used to enable viewing filters on mobile sizes. This has caused issue #1024. To fix this, I have swapped the logic of the rule that hides the filters on mobile: it is now hidden by default and a `min-width` query is used to show it on wider viewports. This is more consistent with similar media queries in the same file. Looking to the future, these issues should become less common if we switch to range-based media queries: https://caniuse.com/css-media-range-syntax * Delete package-lock.json --------- Co-authored-by: Prospector <[email protected]>
- Loading branch information