Skip to content
TypeScript

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

Zortosd5825e1d2fb1
diff --git a/apps/web/src/components/chat/TraitsPicker.tsx b/apps/web/src/components/chat/TraitsPicker.tsx
index 5feca291968..c48b8eb0f6c 100644
--- a/apps/web/src/components/chat/TraitsPicker.tsx
+++ b/apps/web/src/components/chat/TraitsPicker.tsx
@@ -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>