@@ -39,6 +39,7 @@ struct SettingsConnectionHeader: View {
3939 onDisconnect: onDisconnect,
4040 onReconnect: onReconnect
4141 )
42+ . layoutPriority ( 1 )
4243 }
4344
4445 if health. transport. isConnected {
@@ -52,7 +53,7 @@ struct SettingsConnectionHeader: View {
5253 . foregroundStyle ( ADEColor . textSecondary)
5354 . fixedSize ( horizontal: false , vertical: true )
5455 } else {
55- Text ( " Pair a machine to start syncing lanes, work, and files . " )
56+ Text ( " Pair once on Wi‑Fi to remotely connect later . " )
5657 . font ( . subheadline)
5758 . foregroundStyle ( ADEColor . textSecondary)
5859 . fixedSize ( horizontal: false , vertical: true )
@@ -210,33 +211,26 @@ private struct SettingsConnectionQuickAction: View {
210211 . accessibilityLabel ( " Disconnect from machine " )
211212
212213 case . connecting:
213- HStack ( spacing: 8 ) {
214+ // Status copy lives in the header's leading column — keep the trailing
215+ // control compact so it never steals width from the title stack.
216+ Button {
217+ onDisconnect ( )
218+ } label: {
214219 HStack ( spacing: 6 ) {
215220 ProgressView ( ) . controlSize ( . mini)
216- Text ( " Connecting " )
217- . font ( . caption. weight ( . medium) )
218- . foregroundStyle ( ADEColor . textSecondary)
219- }
220- . padding ( . horizontal, 10 )
221- . padding ( . vertical, 7 )
222- . background ( ADEColor . textSecondary. opacity ( 0.1 ) , in: Capsule ( ) )
223- . glassEffect ( )
224-
225- // Always offer a way out of a connect attempt — `disconnect()` cancels
226- // the in-flight attempt so the user is never stuck watching a spinner.
227- Button {
228- onDisconnect ( )
229- } label: {
230221 Text ( " Cancel " )
231222 . font ( . caption. weight ( . semibold) )
232223 . foregroundStyle ( ADEColor . textSecondary)
233- . padding ( . horizontal, 10 )
234- . padding ( . vertical, 7 )
224+ . lineLimit ( 1 )
235225 }
236- . buttonStyle ( . plain)
237- . background ( ADEColor . textSecondary. opacity ( 0.1 ) , in: Capsule ( ) )
238- . accessibilityLabel ( " Cancel connecting " )
226+ . padding ( . horizontal, 10 )
227+ . padding ( . vertical, 7 )
239228 }
229+ . buttonStyle ( . plain)
230+ . background ( ADEColor . textSecondary. opacity ( 0.1 ) , in: Capsule ( ) )
231+ . glassEffect ( )
232+ . fixedSize ( horizontal: true , vertical: false )
233+ . accessibilityLabel ( " Cancel connecting " )
240234
241235 case . error, . disconnected:
242236 if canReconnectToSavedHost {
0 commit comments