TypeScript
fix(web): effort picker shows Default or the checkmark, flush right (#28162)
shivam15fe28327278
diff --git a/apps/web/src/components/chat/ComposerModelEffort.tsx b/apps/web/src/components/chat/ComposerModelEffort.tsxindex 015801b3033..5ce77c60b10 100644--- a/apps/web/src/components/chat/ComposerModelEffort.tsx+++ b/apps/web/src/components/chat/ComposerModelEffort.tsx@@ -171,8 +171,14 @@ function ColumnRow(props: {const content = (<><span className="min-w-0 flex-1 truncate">{props.label}</span>- {props.isDefault ? <span className="text-muted-foreground/70 text-xs">Default</span> : null}- <CheckIcon aria-hidden="true" className={cn("size-3.5", !props.selected && "invisible")} />+ {props.selected ? (+ <>+ {props.isDefault ? <span className="sr-only">Default</span> : null}+ <CheckIcon aria-hidden="true" className="size-3.5" />+ </>+ ) : props.isDefault ? (+ <span className="text-muted-foreground/70 text-xs">Default</span>+ ) : null}</>);if (!props.description) return <button {...rowProps}>{content}</button>;