Skip to content
TypeScript

fix(web): center default badges in the reasoning selector (#21252)

Afonso Ferreira60775b89c5d1
diff --git a/apps/web/src/components/chat/TraitsPicker.tsx b/apps/web/src/components/chat/TraitsPicker.tsx
index 52b80173e95..cc200f1ebd0 100644
--- a/apps/web/src/components/chat/TraitsPicker.tsx
+++ b/apps/web/src/components/chat/TraitsPicker.tsx
@@ -509,16 +509,9 @@ export const TraitsMenuContent = memo(function TraitsMenuContentImpl({
disabled={ultrathinkInBodyText && descriptor.id === primarySelectDescriptor?.id}
>
<span className="flex w-full min-w-0 flex-col">
- <span className="flex w-full min-w-0 items-center justify-between gap-3">
- <span className="min-w-0 truncate">
- {option.label}
- {option.isDefault ? (
- <>
- {" "}
- <DefaultBadge />
- </>
- ) : null}
- </span>
+ <span className="flex min-w-0 items-center gap-1">
+ <span className="min-w-0 truncate">{option.label}</span>
+ {option.isDefault ? <DefaultBadge /> : null}
</span>
{option.description ? (
<span className="max-w-56 text-pretty text-muted-foreground/80 text-xs">