The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 09:30 UTC
fix(web): machine label no longer shifts between one and many machines (#28070)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Theo Browne committed
Oct 31, 2026 at 02:53 UTC
a24ec905c8157f1ef6114639ff614617d98f10e9
4 files changed
+7
-11
apps/web/src/components/BranchToolbar.tsx
+4
-8
@@ -214,9 +214,7 @@ const RunContextSelector = memo(function RunContextSelector({
214
const workspaceIcon = (
215
<Tooltip>
216
<TooltipTrigger render={<span className="inline-flex shrink-0" />}>
217
- <WorkspaceIcon
218
- className={isPanel ? THREAD_DETAILS_PANEL_ICON_CLASS : "size-3 shrink-0 mx-0!"}
219
- />
217
+ <WorkspaceIcon className={isPanel ? THREAD_DETAILS_PANEL_ICON_CLASS : "size-3 shrink-0"} />
218
</TooltipTrigger>
219
<TooltipPopup>
220
{isPanel
@@ -232,7 +230,7 @@ const RunContextSelector = memo(function RunContextSelector({
230
<TooltipTrigger render={<span className="inline-flex shrink-0" />}>
231
{autoEnvironmentLabel ? (
232
<ScaleIcon
235
- className={isPanel ? THREAD_DETAILS_PANEL_ICON_CLASS : "size-3 shrink-0 mx-0!"}
233
+ className={isPanel ? THREAD_DETAILS_PANEL_ICON_CLASS : "size-3 shrink-0"}
234
aria-hidden="true"
235
/>
236
) : (
@@ -240,9 +238,7 @@ const RunContextSelector = memo(function RunContextSelector({
238
kind={activeEnvironment?.machine ?? "server"}
239
// Wide machine glyphs need a little more box to match the square row icons.
240
className={
243
- isPanel
244
- ? cn(THREAD_DETAILS_PANEL_ICON_CLASS, "-mx-px size-4.5")
245
- : "size-3 shrink-0 mx-0!"
241
+ isPanel ? cn(THREAD_DETAILS_PANEL_ICON_CLASS, "-mx-px size-4.5") : "size-3 shrink-0"
242
}
243
/>
244
)}
@@ -267,7 +263,7 @@ const RunContextSelector = memo(function RunContextSelector({
263
return (
264
<span
265
className={cn(
270
- "inline-flex h-7 min-w-0 max-w-[48%] flex-initial items-center justify-start gap-1 rounded-md border border-transparent px-1.75 font-normal text-foreground/70 text-xs sm:h-6 dark:text-muted-foreground",
266
+ "inline-flex h-7 min-w-0 max-w-[48%] flex-initial items-center justify-start gap-1 rounded-md border border-transparent px-1.75 font-normal text-foreground/70 text-sm sm:h-6 sm:text-xs dark:text-muted-foreground",
267
isPanel && "max-w-full",
268
isPanel && THREAD_DETAILS_PANEL_LOCKED_ROW_CLASS,
269
)}
apps/web/src/components/BranchToolbarEnvModeSelector.tsx
+1
-1
@@ -73,7 +73,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
73
if (envLocked || forceNewWorktree) {
74
const lockedRow = (
75
<span
76
- className="inline-flex h-7 min-w-0 items-center gap-1 border border-transparent px-1.75 font-normal text-muted-foreground/70 text-xs sm:h-6"
76
+ className="inline-flex h-7 min-w-0 items-center gap-1 border border-transparent px-1.75 font-normal text-muted-foreground/70 text-sm sm:h-6 sm:text-xs"
77
data-composer-context-control
78
>
79
{activeWorktreePath ? (
apps/web/src/components/BranchToolbarEnvironmentSelector.tsx
+1
-1
@@ -68,7 +68,7 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
68
if (envLocked || (onEnvironmentChange === undefined && onAddToMachine === undefined)) {
69
const lockedRow = (
70
<span
71
- className="inline-flex h-7 min-w-0 max-w-full items-center gap-1 border border-transparent px-1.75 font-normal text-muted-foreground/70 text-xs sm:h-6"
71
+ className="inline-flex h-7 min-w-0 max-w-full items-center gap-1 border border-transparent px-1.75 font-normal text-muted-foreground/70 text-sm sm:h-6 sm:text-xs"
72
data-composer-context-control
73
>
74
<EnvironmentMachineIcon
apps/web/src/components/chat/ComposerControl.tsx
+1
-1
@@ -12,7 +12,7 @@ function composerControlClassName(size: ComposerControlSize, className?: string)
12
"relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--control-radius) border border-transparent text-base outline-none hover:bg-accent data-pressed:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-disabled:pointer-events-none data-disabled:opacity-64 pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&:active:not([aria-haspopup])]:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:-mx-0.5 [&_svg[data-composer-control-icon]]:mx-0",
13
"[&_:is([data-composer-control-label],[data-chat-provider-model-picker-label])]:[text-box:trim-both_cap_alphabetic] supports-[text-box:trim-both_cap_alphabetic]:[&_:is([data-composer-control-label],[data-chat-provider-model-picker-label])]:py-1.5",
14
size === "xs"
15
- ? "h-7 gap-1 px-1.75 font-normal text-foreground/70 text-sm hover:text-foreground dark:text-muted-foreground sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5 [&_svg[data-composer-control-chevron]]:ms-0 [&_svg[data-composer-control-chevron]]:-me-1"
15
+ ? "h-7 gap-1 px-1.75 font-normal text-foreground/70 text-sm hover:text-foreground dark:text-muted-foreground sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5 [&_svg]:mx-0 [&_svg[data-composer-control-chevron]]:ms-0 [&_svg[data-composer-control-chevron]]:-me-1"
16
: "h-7 gap-1.5 px-2 font-medium text-foreground/80 [&_svg:not([class*='text-'])]:text-muted-foreground hover:text-foreground sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4",
17
"aria-pressed:bg-accent aria-pressed:text-accent-foreground aria-pressed:hover:bg-accent/80",
18
className,