Skip to content

fix(web): thread title button no longer eats the drag area - #5857

Merged
maria-rcks merged 1 commit into
pingdotgg:mainfrom
nathangerday:fix/chat-header-title-drag-area
Aug 9, 2026
Merged

fix(web): thread title button no longer eats the drag area#5857
maria-rcks merged 1 commit into
pingdotgg:mainfrom
nathangerday:fix/chat-header-title-drag-area

Conversation

@nathangerday

@nathangerday nathangerday commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What Changed

Remove flex-1 from the server-thread title button in ChatHeader.

This keeps the button's clickable area limited to the title and chevron instead of stretching across the remaining header space.

Why

The title button introduced in #5592 inherited flex-1 from the previous non-interactive <h2>.

As a result, its invisible clickable area extended toward the right-side controls, preventing that part of the title bar from being used to drag the desktop window.

min-w-0 remains on the button and the inner <h2> still uses truncate, so long thread titles continue to ellipsize.

Fixes #5631

UI Changes

Before

image

After

image
Recording.2026-08-09.183731.mp4

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Low Risk
Single Tailwind class removal on a header button; no auth, data, or API changes.

Overview
Restores window dragging on the chat header for server threads by shrinking the thread-title action button’s hit target.

The server-thread title <button> no longer uses flex-1, so it only covers the title text and chevron instead of stretching toward the right-side controls. min-w-0 on the button and truncate on the inner <h2> are unchanged, so long titles still ellipsize.

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

Note

Fix thread title button in ChatHeader to stop consuming drag area

Removes flex-1 from the thread title button's className in ChatHeader.tsx, so the button no longer stretches to fill remaining horizontal space. The button now sizes to its content, freeing the drag area alongside it.

Macroscope summarized db45048.

The title button introduced in pingdotgg#5592 carried over `flex-1` from the previous <h2>, so the clickable area stretched all the way toward the right-side controls. The title text didn't visibly expand, but the invisible button area meant the empty title bar could no longer be grabbed to move the window on existing/server threads. Drafts were unaffected because they still render a plain <h2>.

Drop `flex-1` from the server-thread title button. The button still has `min-w-0` so it can shrink, and the inner <h2> keeps `truncate`, so long titles continue to ellipsize correctly.

Fixes pingdotgg#5631

Generated with opencode-go/minimax-m3
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

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 Plus

Run ID: dd06d930-a4a0-4dda-b4ad-a19ae8a6f17e

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

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.

@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 Aug 9, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved db45048

This is a simple CSS-only fix removing flex-1 from a button's class list, preventing the element from expanding into the drag area. No logic changes - purely a layout fix.

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

@maria-rcks
maria-rcks merged commit 659986c into pingdotgg:main Aug 9, 2026
17 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.

[Bug]: Click area for chat switcher when existing chat open extends past text and chevron preventing window movement

2 participants