Skip to content

fix: show the theme toggle on mobile - #1519

Merged
manudeli merged 1 commit into
mainfrom
manudeli/mobile-theme-toggle
Nov 22, 2026
Merged

manudeli merged 1 commit into
mainfrom
manudeli/mobile-theme-toggle

Conversation

@manudeli

@manudeli manudeli commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@changeset-bot

changeset-bot Bot commented Nov 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: adee7b0

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.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com adee7b0 Commit Preview URL

Branch Preview URL
Nov 22 2026, 03:41 AM

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

ThemeToggle is no longer wrapped in the desktop-navigation visibility container. The change removes that desktop-only visibility condition.

Changes: Navbar visibility

Layer / File(s) Summary
Theme toggle rendering
src/components/Navbar.tsx
ThemeToggle is rendered without the desktopNavClass wrapper.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: abeuty, tannerlinsley

Merge Risk: Minimal · up to adee7

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

@manudeli
manudeli merged commit 7800cbd into main Nov 22, 2026
8 checks passed
@manudeli
manudeli deleted the manudeli/mobile-theme-toggle branch November 22, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant