fix(web): stop clipping the traits chevron on long Codex effort labels (#9433)

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
ZortosandCursor authored and GitHub committed 2026-09-03 11:35:49 -07:00
1 parent 126afb56fc
commit d5825e1d2f
1 file changed
+3 -4
@@ -627,11 +627,10 @@ export const TraitsPicker = memo(function TraitsPicker({
}
>
{isCodexStyle ? (
// The label truncates itself; clipping the wrapper too would cut off
// the chevron, whose negative end margin overhangs the wrapper edge.
<span
className={cn(
"flex min-w-0 w-full items-center overflow-hidden",
size === "xs" ? "gap-1" : "gap-1.5",
)}
className={cn("flex min-w-0 w-full items-center", size === "xs" ? "gap-1" : "gap-1.5")}
>
{fastModeIcon}
<span className="min-w-0 truncate">{triggerLabel}</span>