Make Crowdsource Contributions page responsive for all screens#828
Conversation
|
Hey @Mahimahto, the issue that you are facing, that is, on clicking the options, the filter is getting applied directly and not waiting for the apply button, is because you have used the same components from the existing filter menu, and in the existing filter menu, the event handling is such that on selecting an option, it directly redirects to a new URL to apply the filter. That is what is happening in the mobile version as well. Also, the apply button that is created for the mobile filter has no event handler to apply the filter, so that button won't work in any scenario. We can either go with the existing setting, that is, clicking on an option applies the filter directly (and we remove the apply filters button), or we would need to write new event handlers separately for the mobile version of the filter that apply all the selected filters after clicking on the apply button, and modify the existing HTML as well. |
Changes I made:I removed the “Apply Filter” button.
Tablet freeze is not working even after using md. What should I do for tablet screens? |
|
have merged with the known limitation. |
PR Description
Summary
This pull request improves the responsiveness of the Crowdsource Contributions page, ensuring a smoother experience on smaller screens such as mobile devices and tablets.
Changes Made
1.Search Bar
text-base sm:text-lg md:text-xl).left-side) are now hidden on small screens (hidden lg:flex).hidden md:inline-flex).#mobile-filter-button) for mobile and tablet users.Before
After
Help Needed
Currently, the mobile filter drawer automatically applies filters as soon as the user selects them.
I would like to change this behavior so that filters are only applied after the user clicks an "Apply" button inside the drawer.
If anyone can guide me on how to prevent auto-apply on selection and instead apply filters only on explicit button click, that would be very helpful.
Screenshots