fix(web): thread title button no longer eats the drag area - #5857
Conversation
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
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
ApprovabilityVerdict: Approved db45048 This is a simple CSS-only fix removing You can customize Macroscope's approvability policy. Learn more. |
What Changed
Remove
flex-1from the server-thread title button inChatHeader.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-1from 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-0remains on the button and the inner<h2>still usestruncate, so long thread titles continue to ellipsize.Fixes #5631
UI Changes
Before
After
Recording.2026-08-09.183731.mp4
Checklist
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 usesflex-1, so it only covers the title text and chevron instead of stretching toward the right-side controls.min-w-0on the button andtruncateon 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
ChatHeaderto stop consuming drag areaRemoves
flex-1from 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.