Skip to content

fix: hamburger menu stays open when browser is expanded beyond mobile breakpoint#1511

Open
rafaumeu wants to merge 1 commit into
mattermost:masterfrom
rafaumeu:fix/hamburger-menu-resize-1300
Open

fix: hamburger menu stays open when browser is expanded beyond mobile breakpoint#1511
rafaumeu wants to merge 1 commit into
mattermost:masterfrom
rafaumeu:fix/hamburger-menu-resize-1300

Conversation

@rafaumeu

Copy link
Copy Markdown

Summary

Fixes #1300

When the browser is shrunk below 767px, the hamburger menu is opened, and then the browser is expanded back above 767px, the mobile navigation menu remained visible.

Fix

Added a resize event listener in site/static/js/main.js that removes the is-active, nav-open, and active classes when window.innerWidth exceeds 767px, effectively closing the mobile menu when transitioning from mobile to desktop viewport.

@mattermost-build

Copy link
Copy Markdown
Contributor

Hello @rafaumeu,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@rafaumeu, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 59 minutes and 21 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c1fd03eb-b76a-4923-b491-0af8a7406f64

📥 Commits

Reviewing files that changed from the base of the PR and between 078f70f and 24a87f0.

📒 Files selected for processing (1)
  • site/static/js/main.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mattermost-build

Copy link
Copy Markdown
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Help Wanted: Hamburger Menu Issue

2 participants