Fix: Improve responsive layout for filter-controls on Challenges page#351
Fix: Improve responsive layout for filter-controls on Challenges page#351KaranKumar099 wants to merge 1 commit intoopensource-society:mainfrom
Conversation
There was a problem hiding this comment.
Greptile Summary
This PR addresses a responsive design issue on the Challenges page where the filter controls section would break when screen width dropped below 1020px. The fix involves two key changes:
-
HTML cleanup: Removes an empty and redundant
<div class="filter-group">element frompages/challenges.htmlthat was contributing to unexpected spacing or layout behavior in the flexbox container. -
CSS responsive enhancement: Adds a new media query at the 1020px breakpoint in
styles/challenges.cssthat makes the.search-groupelement take full width (width: 100%). This prevents the search group from getting squeezed or overflowing on medium-sized screens (tablets/smaller laptops).
The changes integrate well with the existing responsive design patterns in the codebase. The application already has a mobile breakpoint at 768px where similar full-width styling is applied. This new 1020px breakpoint fills the gap between desktop and mobile layouts, creating a smoother responsive transition for tablet-sized devices. The fix specifically targets the search input and clear filters button alignment issue that occurs when the right-aligned search group (margin-left: auto) doesn't have sufficient horizontal space.
Confidence score: 4/5
- This PR is safe to merge with minimal risk of breaking existing functionality.
- The changes are targeted, well-scoped, and follow existing responsive design patterns in the codebase.
- The HTML cleanup removes redundant code, and the CSS media query addresses a specific layout issue without affecting other breakpoints.
2 files reviewed, 1 comment
| } | ||
|
|
||
| @media (max-width: 1020px) { | ||
| .search-group{ |
There was a problem hiding this comment.
syntax: Missing space after selector name
| .search-group{ | |
| .search-group { |
Fixes: #349
This PR improves the responsiveness of the filter-controls section on the Challenges page.
Steps to Reproduce (before fix):
Fixed Screenshot: