Skip to content

fix(web): make new thread button always visible on mobile#2419

Merged
juliusmarminge merged 3 commits intopingdotgg:mainfrom
jappyjan:mobile-new-chat-button-visible
Apr 30, 2026
Merged

fix(web): make new thread button always visible on mobile#2419
juliusmarminge merged 3 commits intopingdotgg:mainfrom
jappyjan:mobile-new-chat-button-visible

Conversation

@jappyjan
Copy link
Copy Markdown
Contributor

@jappyjan jappyjan commented Apr 30, 2026

Summary

  • The new-thread button on each project header in the sidebar was hidden by default and only revealed on hover/focus, leaving it unreachable on touch devices.
  • Adds max-sm:pointer-events-auto max-sm:opacity-100 to the reveal wrapper so the button is always visible/interactive on mobile viewports while keeping the hover/focus reveal on desktop.

Test plan

  • On a mobile viewport (or DevTools mobile emulation), the new-thread button is visible next to each project name in the sidebar.
  • Tapping the button creates a new thread in that project.
  • On desktop, the button still appears only on hover/focus over the project header.

🤖 Generated with Claude Code


Open in Devin Review

Note

Low Risk
Small, CSS-only tweaks to sidebar project header layout/visibility; low risk aside from potential minor spacing/overlap regressions on small viewports.

Overview
Makes the sidebar project header’s new-thread action reachable on touch devices by forcing its wrapper to be visible and clickable on max-sm viewports (while keeping hover/focus reveal behavior on larger screens).

Adjusts project header spacing to accommodate the always-visible mobile affordance (extra right padding) and shifts the remote-environment cloud badge on small screens to avoid overlapping the new-thread button.

Reviewed by Cursor Bugbot for commit 7c5bace. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Make new thread button always visible on mobile in sidebar

Adds pr-8 and max-sm:pr-14 right padding to the SidebarProjectItem container in Sidebar.tsx, ensuring the new thread button is not obscured on small screens.

Macroscope summarized 2134556.

Make the new thread button visible on mobile viewports (max-sm) by adding
max-sm:pointer-events-auto and max-sm:opacity-100 classes. On desktop,
the button remains hidden by default and appears on hover/focus. This
allows users on mobile devices to start new chats in a project without
needing hover capability.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 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: 3a27240a-3179-4ed5-9fa0-833e3eb2715f

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.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Apr 30, 2026
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 13420e5. Configure here.

Comment thread apps/web/src/components/Sidebar.tsx
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp Bot commented Apr 30, 2026

Approvability

Verdict: Approved

This PR adds Tailwind CSS responsive classes to make the new thread button always visible on mobile screens. The changes are purely presentational with no logic modifications.

You can customize Macroscope's approvability policy. Learn more.

@jappyjan jappyjan marked this pull request as draft April 30, 2026 15:55
@juliusmarminge juliusmarminge marked this pull request as ready for review April 30, 2026 18:03
- Make the new chat action visible in the mobile sidebar
- Keep the sidebar affordance aligned with the chat UX
@github-actions github-actions Bot added size:XXL 1,000+ changed lines (additions + deletions). and removed size:XS 0-9 changed lines (additions + deletions). labels Apr 30, 2026
- Drop stale .t33 cache and state files
@github-actions github-actions Bot added size:XS 0-9 changed lines (additions + deletions). and removed size:XXL 1,000+ changed lines (additions + deletions). labels Apr 30, 2026
@juliusmarminge juliusmarminge enabled auto-merge (squash) April 30, 2026 18:16
@juliusmarminge juliusmarminge merged commit 9e2f712 into pingdotgg:main Apr 30, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 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.

2 participants