You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The theme toggle was inside a desktop-only wrapper, so it disappeared whenever the mobile navigation was active. Render the existing toggle directly in the shared navbar actions so mobile users can switch between system, light, and dark modes without opening the menu.
Type checks and lint passed locally. The local sandbox blocked the dev server from opening a port, so the change still needs a visual check on a mobile viewport.
Summary by CodeRabbit
New Features
The theme toggle is now visible at all viewport sizes, including on smaller screens. Users can access it without relying on the desktop navigation being displayed.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
The theme toggle now appears on mobile as intended. The only open question is a possible visual crowding on very narrow screens, which has not been confirmed. Overall merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "fix: show the theme toggle on mobile" matches the change. The summary says ThemeToggle is no longer inside the desktop-only navigation wrapper, so it renders at all viewport sizes. The obje…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "fix: show the theme toggle on mobile" matches the change. The summary says ThemeToggle is no longer inside the desktop-only navigation wrapper, so it renders at all viewport sizes. The objectives confirm the aim is to let mobile users switch theme modes without opening the menu. The title names the main change and the user-facing effect.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: f0ffc90e-9ef0-4ed9-b1fc-9d43f46e664d
Commits
Reviewing files that changed from the base of the PR and between 473e9d0 and adee7b0.
Files selected for processing: 1
src/components/Navbar.tsx
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
The theme toggle was inside a desktop-only wrapper, so it disappeared whenever the mobile navigation was active. Render the existing toggle directly in the shared navbar actions so mobile users can switch between system, light, and dark modes without opening the menu.
Type checks and lint passed locally. The local sandbox blocked the dev server from opening a port, so the change still needs a visual check on a mobile viewport.
Summary by CodeRabbit