Skip to content

Commit db45048

Browse files
committed
fix(web): thread title button no longer eats the drag area
The title button introduced in #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 #5631 Generated with opencode-go/minimax-m3
1 parent 1a003e3 commit db45048

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/chat/ChatHeader.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export const ChatHeader = memo(function ChatHeader({
266266
aria-label={`Thread actions for ${activeThreadTitle}`}
267267
aria-haspopup="menu"
268268
onClick={openMenuFromTitle}
269-
className="group/thread-title inline-flex min-w-0 flex-1 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
269+
className="group/thread-title inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
270270
/>
271271
}
272272
>

0 commit comments

Comments
 (0)