Skip to content

Commit 5d930c2

Browse files
fix(web): dim the Default badge with the rest of its row
A `Badge` carries no disabled treatment of its own, so the solid `bg-primary` pill stayed at full strength in the desktop-only block while the name, rename field and row menu button around it all sat at 0.64. The badge it replaced was inside the dimmed span, so this was a regression. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent ea5c788 commit 5d930c2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/web/src/components/settings/IntegrationsSettings.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,13 @@ function BrowserProfilesSetting({ disabled }: { readonly disabled: boolean }) {
810810
onCommit={(next) => renameProfile(profile.id, next)}
811811
/>
812812
)}
813-
{isDefault ? <Badge>Default</Badge> : null}
813+
{/*
814+
Dimmed with the rest of the row: a `Badge` has no disabled
815+
treatment of its own, so a solid `bg-primary` pill would
816+
otherwise sit at full strength beside a name, rename field
817+
and menu button that are all at 0.64.
818+
*/}
819+
{isDefault ? <Badge className={cn(disabled && "opacity-64")}>Default</Badge> : null}
814820
</span>
815821
<Menu>
816822
<MenuTrigger

0 commit comments

Comments
 (0)