Skip to content

fix(web): hide mobile sidebar after thread actions#1259

Open
chirino wants to merge 1 commit intopingdotgg:mainfrom
chirino:fix/hide-mobile-sidebar-after-thread-actions
Open

fix(web): hide mobile sidebar after thread actions#1259
chirino wants to merge 1 commit intopingdotgg:mainfrom
chirino:fix/hide-mobile-sidebar-after-thread-actions

Conversation

@chirino
Copy link
Contributor

@chirino chirino commented Mar 20, 2026

Summary

Hide the off-canvas sidebar on narrow screens after users create a new thread or select an existing one. This keeps the selected thread content visible immediately instead of leaving the mobile navigation open. Fixes #1258.

Changes

  • close the mobile sidebar before navigating after thread selection
  • close the mobile sidebar when creating a new thread from the sidebar
  • add logic coverage for mobile-only sidebar hiding behavior

Note

Hide mobile sidebar after thread actions in the Sidebar component

On mobile, the sidebar now closes when a user opens a thread (via click or Enter/Space) or creates a new thread from a project card. A new shouldHideSidebarAfterThreadAction helper in Sidebar.logic.ts wraps the isMobile boolean to centralize the condition. On desktop, sidebar behavior is unchanged.

Macroscope summarized 73de16b.

Close the off-canvas sidebar on narrow screens when users create a new thread or select an existing one.

Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>
@coderabbitai
Copy link

coderabbitai bot commented Mar 20, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: c3bd551e-0f35-461e-a449-b4b1b44e9eef

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ 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.

Tip

CodeRabbit can enforce grammar and style rules using `languagetool`.

Configure the reviews.tools.languagetool setting to enable/disable rules and categories. Refer to the LanguageTool Community to learn more.

@github-actions github-actions bot added size:S 10-29 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 20, 2026
@chirino chirino marked this pull request as ready for review March 20, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Hide mobile sidebar after creating or selecting a thread

1 participant