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's Changed * fix(web): thread title button no longer eats the drag area by @nathangerday in pingdotgg/t3code#5857 * fix(web): unify usage page chrome by @t3-code[bot] in pingdotgg/t3code#5823 * fix(shell): add ~/.local/bin to the Windows CLI resolver so native-installed providers are found by @arhxam in pingdotgg/t3code#5074 * fix(web): match settings search shortcut styling to command palette's by @UtkarshUsername in pingdotgg/t3code#5841 * fix(mobile): long-pressing a thread row no longer navigates into the thread by @juliusmarminge in pingdotgg/t3code#5901 * fix(server): usage no longer double-counts forked Codex sessions by @t3dotgg in pingdotgg/t3code#5887 * fix(server): sandbox user-provided SVGs by @t3dotgg in pingdotgg/t3code#5916 * fix(web): match usage titlebar text styling by @t3-code[bot] in pingdotgg/t3code#5897 ## New Contributors * @nathangerday made their first contribution in pingdotgg/t3code#5857 **Full Changelog**: pingdotgg/t3code@v0.0.33-nightly.20260809.1047...v0.0.33-nightly.20260810.1054 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.33-nightly.20260810.1054
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.