From 78d96355ddb495a6f66529ff0c11ea15cba310ed Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 7 Dec 2025 04:32:28 +0000 Subject: [PATCH] Settings: inline heartbeat inputs --- .../Sources/Clawdis/ConfigSettings.swift | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/macos/Sources/Clawdis/ConfigSettings.swift b/apps/macos/Sources/Clawdis/ConfigSettings.swift index ad88391b2..f4658a12f 100644 --- a/apps/macos/Sources/Clawdis/ConfigSettings.swift +++ b/apps/macos/Sources/Clawdis/ConfigSettings.swift @@ -66,8 +66,8 @@ struct ConfigSettings: View { } LabeledContent("Heartbeat") { - VStack(alignment: .leading, spacing: 8) { - HStack(spacing: 8) { + VStack(alignment: .leading, spacing: 6) { + HStack(spacing: 12) { Stepper( value: Binding( get: { self.heartbeatMinutes ?? 10 }, @@ -77,15 +77,15 @@ struct ConfigSettings: View { Text("Every \(self.heartbeatMinutes ?? 10) min") } .help("Set to 0 to disable automatic heartbeats") - } - TextField("HEARTBEAT", text: self.$heartbeatBody) - .textFieldStyle(.roundedBorder) - .frame(width: 320) - .onChange(of: self.heartbeatBody) { _, _ in - self.autosaveConfig() - } - .help("Message body sent on each heartbeat") + TextField("HEARTBEAT", text: self.$heartbeatBody) + .textFieldStyle(.roundedBorder) + .frame(width: 240) + .onChange(of: self.heartbeatBody) { _, _ in + self.autosaveConfig() + } + .help("Message body sent on each heartbeat") + } Text("Heartbeats keep Pi sessions warm; 0 minutes disables them.") .font(.footnote)