fix(web): reconnect the composer seam for remote non-Git projects (#5633)
This commit is contained in:
1 parent
f0fb406acf
commit
7a84f6cf10
3 files changed
+8
-3
No files matched your search
@@ -126,7 +126,7 @@ const MobileRunContextSelector = memo(function MobileRunContextSelector({
|
||||
|
||||
if (isLocked) {
|
||||
return (
|
||||
<span className="inline-flex min-w-0 max-w-[48%] flex-1 items-center justify-start gap-1 rounded-md border border-transparent px-[calc(--spacing(2)-1px)] text-sm font-medium text-muted-foreground/70 md:hidden">
|
||||
<span className="inline-flex h-7 min-w-0 max-w-[48%] flex-1 items-center justify-start gap-1 rounded-md border border-transparent px-[calc(--spacing(2)-1px)] text-sm font-medium text-muted-foreground/70 sm:h-6 md:hidden">
|
||||
{triggerContent}
|
||||
</span>
|
||||
);
|
||||
|
||||
@@ -50,7 +50,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
|
||||
|
||||
if (envLocked) {
|
||||
return (
|
||||
<span className="inline-flex shrink-0 items-center gap-1 border border-transparent px-[calc(--spacing(3)-1px)] text-sm font-medium text-muted-foreground/70 sm:text-xs">
|
||||
<span className="inline-flex h-7 shrink-0 items-center gap-1 border border-transparent px-[calc(--spacing(3)-1px)] text-sm font-medium text-muted-foreground/70 sm:h-6 sm:text-xs">
|
||||
{activeWorktreePath ? (
|
||||
<>
|
||||
<FolderGitIcon className="size-3" />
|
||||
|
||||
@@ -41,9 +41,14 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
|
||||
[availableEnvironments],
|
||||
);
|
||||
|
||||
// The static label carries the xs control's height (h-7 sm:h-6) as well as
|
||||
// its padding: the composer context strip has no min-height of its own, and
|
||||
// the glass seam joining it to the composer assumes a fixed strip height, so
|
||||
// a shorter label would drag the seam out of line whenever this label is the
|
||||
// only thing in the strip.
|
||||
if (envLocked || onEnvironmentChange === undefined) {
|
||||
return (
|
||||
<span className="inline-flex min-w-0 max-w-full items-center gap-1 border border-transparent px-[calc(--spacing(3)-1px)] text-sm font-medium text-muted-foreground/70 sm:text-xs">
|
||||
<span className="inline-flex h-7 min-w-0 max-w-full items-center gap-1 border border-transparent px-[calc(--spacing(3)-1px)] text-sm font-medium text-muted-foreground/70 sm:h-6 sm:text-xs">
|
||||
{activeEnvironment?.isPrimary ? (
|
||||
<MonitorIcon className="size-3 shrink-0" />
|
||||
) : (
|
||||
|
||||
Reference in new issue
Block a user