Fix mobile dropdown visibility and improve responsive menu consistency #532
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#499
resolves #531
Description
This PR resolves the issue where the mobile dropdown menu wasn’t appearing between 768px and 1023px due to incorrect breakpoint usage (md:hidden instead of lg:hidden). The menu is now properly visible for all widths below 1024px.
before
dbf.mp4
after
daf.mp4
And also
While testing this fix, I also noticed an inconsistency where reopening the header after resizing caused the menu to stay open. I addressed this by adding a resize listener that automatically closes the mobile menu when the window width exceeds 1024px, ensuring consistent behavior across viewport changes.
before
sbf.mp4
after
saf.mp4
Changes done