Skip to content

Commit 15fe283

Browse files
shivamhwpPR Batch Testerclaude
authored
fix(web): effort picker shows Default or the checkmark, flush right (pingdotgg#28162)
Co-authored-by: PR Batch Tester <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent 44d91c5 commit 15fe283

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,14 @@ function ColumnRow(props: {
171171
const content = (
172172
<>
173173
<span className="min-w-0 flex-1 truncate">{props.label}</span>
174-
{props.isDefault ? <span className="text-muted-foreground/70 text-xs">Default</span> : null}
175-
<CheckIcon aria-hidden="true" className={cn("size-3.5", !props.selected && "invisible")} />
174+
{props.selected ? (
175+
<>
176+
{props.isDefault ? <span className="sr-only">Default</span> : null}
177+
<CheckIcon aria-hidden="true" className="size-3.5" />
178+
</>
179+
) : props.isDefault ? (
180+
<span className="text-muted-foreground/70 text-xs">Default</span>
181+
) : null}
176182
</>
177183
);
178184
if (!props.description) return <button {...rowProps}>{content}</button>;

0 commit comments

Comments
 (0)