Skip to content

Commit 511761e

Browse files
committed
fix(web): mute unavailable project scopes
1 parent cc85d70 commit 511761e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

apps/web/src/components/ProjectScopeBreadcrumb.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ export function ProjectScopeBreadcrumb(props: {
6363
onClick={openProjectMenu}
6464
className="group/project-title inline-flex min-w-0 max-w-64 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
6565
>
66-
<span className="min-w-0 truncate">{selectedLabel ?? props.unavailableLabel}</span>
66+
<span
67+
className={
68+
selectedLabel === null
69+
? "min-w-0 truncate text-muted-foreground"
70+
: "min-w-0 truncate"
71+
}
72+
>
73+
{selectedLabel ?? props.unavailableLabel}
74+
</span>
6775
<ChevronDownIcon
6876
aria-hidden
6977
className="size-3.5 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover/project-title:opacity-100 group-focus-visible/project-title:opacity-100"

0 commit comments

Comments
 (0)