Skip to content

fix(web): show sidebar new-thread button on iPad Safari and other touch tablets#2990

Open
phinaldoo wants to merge 2 commits into
pingdotgg:mainfrom
phinaldoo:fix/ipad-sidebar-new-thread-button
Open

fix(web): show sidebar new-thread button on iPad Safari and other touch tablets#2990
phinaldoo wants to merge 2 commits into
pingdotgg:mainfrom
phinaldoo:fix/ipad-sidebar-new-thread-button

Conversation

@phinaldoo
Copy link
Copy Markdown

@phinaldoo phinaldoo commented Jun 7, 2026

Note

Low Risk
CSS-only sidebar visibility tweaks; no auth, data, or API changes.

Overview
Fixes sidebar controls that only appeared on hover, which left iPad Safari and other touch tablets without a reliable way to start a thread or archive—wide viewports skip max-sm overrides but those devices still report no hover.

Adds a @media (hover: none) block in index.css with sidebar-touch-visible, sidebar-touch-hidden, and sidebar-touch-timestamp, and wires them on project headers (new-thread control, remote cloud badge) and thread rows (archive actions, timestamp spacing). Desktop hover behavior is unchanged.

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

Note

Show sidebar new-thread button and archive actions on iPad Safari and touch tablets

  • Adds a @media (hover: none) and (min-width: 640px) block in index.css defining three classes: sidebar-touch-visible (opacity 1, pointer-events auto), sidebar-touch-hidden (opacity 0, pointer-events none), and sidebar-touch-timestamp (extra right padding).
  • Applies sidebar-touch-visible to archive action buttons in SidebarThreadRow and the new-thread button in SidebarProjectItem, so they appear without hover on touch devices.
  • Applies sidebar-touch-hidden to the remote-environment Cloud icon in SidebarProjectItem on touch devices, and sidebar-touch-timestamp to thread row timestamps to prevent overlap with visible action buttons.

Macroscope summarized 023a1da.

The new-thread and archive buttons in the project sidebar used a
hover-only reveal pattern (opacity-0 with group-hover:opacity-100).
On iPad Safari and other tablets, the viewport is >640px so the
max-sm: fallback does not apply, and hover is not available, leaving
the buttons permanently invisible.

Add @media (hover: none) CSS utilities that make these buttons
visible and tappable on touch devices, while hiding the elements
they replace (environment badge, thread timestamp) to avoid overlap.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 7, 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: b272394a-4094-4e9b-90c7-77969b5a5902

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:S 10-29 changed lines (additions + deletions). labels Jun 7, 2026
Comment thread apps/web/src/index.css
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp Bot commented Jun 7, 2026

Approvability

Verdict: Needs human review

CSS-only changes to fix button visibility on touch tablets. However, an unresolved review comment identifies a potential visual overlap issue where timestamps and action buttons may collide on affected devices, suggesting the fix may be incomplete.

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

The @media (hover: none) block for sidebar-touch-hidden was incorrectly
hiding the remote-only cloud badge on phones (<640px), where the max-sm:
Tailwind modifiers already keep the badge visible beside the new-thread
button. Scope the media query to min-width: 640px so phones retain the
original behaviour while tablets (iPad etc.) still get the fix.
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 023a1da. Configure here.

) : !isThreadRunning ? (
appSettingsConfirmThreadArchive ? (
<div className="pointer-events-none absolute top-1/2 right-1 -translate-y-1/2 opacity-0 transition-opacity duration-150 max-sm:pointer-events-auto max-sm:opacity-100 group-hover/menu-sub-item:pointer-events-auto group-hover/menu-sub-item:opacity-100 group-focus-within/menu-sub-item:pointer-events-auto group-focus-within/menu-sub-item:opacity-100">
<div className="pointer-events-none absolute top-1/2 right-1 -translate-y-1/2 opacity-0 transition-opacity duration-150 max-sm:pointer-events-auto max-sm:opacity-100 group-hover/menu-sub-item:pointer-events-auto group-hover/menu-sub-item:opacity-100 group-focus-within/menu-sub-item:pointer-events-auto group-focus-within/menu-sub-item:opacity-100 sidebar-touch-visible">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Missing touch tablet meta width

Medium Severity

On viewports at least 640px with no hover, archive controls stay visible via sidebar-touch-visible while thread timestamps stay visible too, but the meta column still only uses min-w-12 because max-sm:min-w-20 / max-sm:min-w-24 never apply. Short timestamps can overlap the archive control, unlike on phones where wider mins reserve space.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 023a1da. Configure here.

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.

1 participant