@@ -25,28 +25,7 @@ export function CreationControls(props: CreationControlsProps) {
2525
2626 return (
2727 < div className = "flex flex-wrap items-center gap-x-3 gap-y-2" >
28- { /* Trunk Branch Selector - hidden for Local runtime */ }
29- { showTrunkBranchSelector && (
30- < div
31- className = "flex items-center gap-1"
32- data-component = "TrunkBranchGroup"
33- data-tutorial = "trunk-branch"
34- >
35- < label htmlFor = "trunk-branch" className = "text-muted text-xs" >
36- From:
37- </ label >
38- < Select
39- id = "trunk-branch"
40- value = { props . trunkBranch }
41- options = { props . branches }
42- onChange = { props . onTrunkBranchChange }
43- disabled = { props . disabled }
44- className = "max-w-[120px]"
45- />
46- </ div >
47- ) }
48-
49- { /* Runtime Selector */ }
28+ { /* Runtime Selector - first */ }
5029 < div
5130 className = "flex items-center gap-1"
5231 data-component = "RuntimeSelectorGroup"
@@ -68,16 +47,6 @@ export function CreationControls(props: CreationControlsProps) {
6847 disabled = { props . disabled }
6948 aria-label = "Runtime mode"
7049 />
71- { props . runtimeMode === RUNTIME_MODE . SSH && (
72- < input
73- type = "text"
74- value = { props . sshHost }
75- onChange = { ( e ) => props . onRuntimeChange ( RUNTIME_MODE . SSH , e . target . value ) }
76- placeholder = "user@host"
77- disabled = { props . disabled }
78- className = "bg-separator text-foreground border-border-medium focus:border-accent w-32 rounded border px-1 py-0.5 text-xs focus:outline-none disabled:opacity-50"
79- />
80- ) }
8150 < TooltipWrapper inline >
8251 < span className = "text-muted cursor-help text-xs" > ?</ span >
8352 < Tooltip className = "tooltip" align = "center" width = "wide" >
@@ -90,6 +59,39 @@ export function CreationControls(props: CreationControlsProps) {
9059 </ Tooltip >
9160 </ TooltipWrapper >
9261 </ div >
62+
63+ { /* Trunk Branch Selector - hidden for Local runtime */ }
64+ { showTrunkBranchSelector && (
65+ < div
66+ className = "flex items-center gap-1"
67+ data-component = "TrunkBranchGroup"
68+ data-tutorial = "trunk-branch"
69+ >
70+ < label htmlFor = "trunk-branch" className = "text-muted text-xs" >
71+ From:
72+ </ label >
73+ < Select
74+ id = "trunk-branch"
75+ value = { props . trunkBranch }
76+ options = { props . branches }
77+ onChange = { props . onTrunkBranchChange }
78+ disabled = { props . disabled }
79+ className = "max-w-[120px]"
80+ />
81+ </ div >
82+ ) }
83+
84+ { /* SSH Host Input - after From selector */ }
85+ { props . runtimeMode === RUNTIME_MODE . SSH && (
86+ < input
87+ type = "text"
88+ value = { props . sshHost }
89+ onChange = { ( e ) => props . onRuntimeChange ( RUNTIME_MODE . SSH , e . target . value ) }
90+ placeholder = "user@host"
91+ disabled = { props . disabled }
92+ className = "bg-separator text-foreground border-border-medium focus:border-accent w-32 rounded border px-1 py-0.5 text-xs focus:outline-none disabled:opacity-50"
93+ />
94+ ) }
9395 </ div >
9496 ) ;
9597}
0 commit comments