Skip to content
Merged
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
12 changes: 1 addition & 11 deletions apps/web/src/components/BranchToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,7 @@ const RunContextSelector = memo(function RunContextSelector({
<TooltipPopup>{autoEnvironmentLabel ?? activeEnvironment?.label ?? "Run on"}</TooltipPopup>
</Tooltip>
);
const icon = !showEnvironmentIndicator ? (
workspaceIcon
) : isPanel ? (
environmentIcon
) : (
// Button's SVG margins consume 4px of the gap; mx-0! restores the intended 2px.
<span className="inline-flex shrink-0 items-center gap-0.5">
{environmentIcon}
{workspaceIcon}
</span>
);
const icon = showEnvironmentIndicator ? environmentIcon : workspaceIcon;
const triggerContent = (
<>
{icon}
Expand Down
Loading