Skip to content

Commit 3ce3ac1

Browse files
fix(web): stop clipping the traits chevron on long Codex effort labels
Co-authored-by: Cursor <[email protected]>
1 parent fff33f9 commit 3ce3ac1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,11 +623,10 @@ export const TraitsPicker = memo(function TraitsPicker({
623623
}
624624
>
625625
{isCodexStyle ? (
626+
// The label truncates itself; clipping the wrapper too would cut off
627+
// the chevron, whose negative end margin overhangs the wrapper edge.
626628
<span
627-
className={cn(
628-
"flex min-w-0 w-full items-center overflow-hidden",
629-
size === "xs" ? "gap-1" : "gap-1.5",
630-
)}
629+
className={cn("flex min-w-0 w-full items-center", size === "xs" ? "gap-1" : "gap-1.5")}
631630
>
632631
{fastModeIcon}
633632
<span className="min-w-0 truncate">{triggerLabel}</span>

0 commit comments

Comments
 (0)