Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions apps/web/src/components/sidebar/SidebarChrome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,19 @@ export const SidebarChromeHeader = memo(function SidebarChromeHeader({
backdropVariant && resolveSidebarStageFocusRingOffsetClass(backdropVariant),
)}
/>
<SidebarBrand onBackdrop={backdropVariant !== null} />
{pillLabel ? (
<Badge
className="relative z-10 ml-1 rounded-full px-1.5 text-muted-foreground"
data-environment-identification="pill"
size="sm"
variant="secondary"
>
{pillLabel}
</Badge>
) : null}
<div className="relative z-10 flex min-w-0 flex-1 items-center gap-1 md:mr-3 md:ml-[var(--workspace-titlebar-content-left)]">
<SidebarBrand onBackdrop={backdropVariant !== null} />
{pillLabel ? (
<Badge
className="ml-1 shrink-0 rounded-full px-1 text-muted-foreground md:ml-auto"
data-environment-identification="pill"
size="sm"
variant="secondary"
>
{pillLabel}
</Badge>
) : null}
</div>
</SidebarHeader>
);
});
Expand All @@ -84,7 +86,7 @@ function SidebarBrand({ onBackdrop }: { onBackdrop: boolean }) {
<Link
aria-label="Go to threads"
className={cn(
"relative z-10 ml-[var(--workspace-titlebar-content-left)] hidden h-7 w-fit min-w-0 shrink-0 items-center gap-1 overflow-hidden rounded-md outline-hidden ring-ring focus-visible:ring-2 md:flex",
"relative hidden h-7 w-fit min-w-0 items-center gap-1 overflow-hidden rounded-md outline-hidden ring-ring focus-visible:ring-2 md:flex",
onBackdrop ? "text-white" : "text-foreground",
)}
to="/"
Expand All @@ -93,7 +95,9 @@ function SidebarBrand({ onBackdrop }: { onBackdrop: boolean }) {
<span
className={cn(
"-translate-y-px truncate text-sm font-medium tracking-tight",
onBackdrop ? "text-white/70" : "text-muted-foreground",
onBackdrop
? "text-white/70"
: "hidden text-muted-foreground @[15rem]/sidebar-header:inline",
)}
>
Code
Expand Down
Loading