Skip to content

Commit 736807a

Browse files
committed
fix(web): show the project pin before the remote badge
1 parent a036489 commit 736807a

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎apps/web/src/components/Sidebar.tsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,13 +3138,6 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
31383138
)}
31393139
</ProjectScopeRowIcon>
31403140
<span className="min-w-0 flex-1 truncate text-sm">{item.label}</span>
3141-
{project && showProjectEnvironments ? (
3142-
<ProjectEnvironmentBadge
3143-
group={project}
3144-
primaryEnvironmentId={primaryEnvironmentId}
3145-
machineByEnvironmentId={environmentMachineById}
3146-
/>
3147-
) : null}
31483141
{project && canPinProject(project) ? (
31493142
<ProjectPinButton
31503143
name={project.displayName}
@@ -3153,6 +3146,13 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
31533146
onToggle={() => toggleProjectGroupPin(project)}
31543147
/>
31553148
) : null}
3149+
{project && showProjectEnvironments ? (
3150+
<ProjectEnvironmentBadge
3151+
group={project}
3152+
primaryEnvironmentId={primaryEnvironmentId}
3153+
machineByEnvironmentId={environmentMachineById}
3154+
/>
3155+
) : null}
31563156
{project ? (
31573157
<Button
31583158
size="icon-xs"

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,6 @@ export function DraftHeroHeadline({
344344
</TooltipTrigger>
345345
<TooltipPopup side="top">{item.label}</TooltipPopup>
346346
</Tooltip>
347-
{entry && showProjectEnvironments ? (
348-
<ProjectEnvironmentBadge
349-
group={entry.group}
350-
primaryEnvironmentId={primaryEnvironmentId}
351-
machineByEnvironmentId={environmentMachineById}
352-
/>
353-
) : null}
354347
{entry && canPinProjectGroup(entry.group) ? (
355348
<ProjectPinButton
356349
name={entry.group.displayName}
@@ -359,6 +352,13 @@ export function DraftHeroHeadline({
359352
onToggle={() => toggleProjectGroupPin(entry.group)}
360353
/>
361354
) : null}
355+
{entry && showProjectEnvironments ? (
356+
<ProjectEnvironmentBadge
357+
group={entry.group}
358+
primaryEnvironmentId={primaryEnvironmentId}
359+
machineByEnvironmentId={environmentMachineById}
360+
/>
361+
) : null}
362362
</ComboboxItem>
363363
);
364364
}}

0 commit comments

Comments
 (0)