From c74c1a0c5f6d8d02325a418db590482c41785a6f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 7 Dec 2025 04:13:19 +0100 Subject: [PATCH] fix: stabilize tools action width --- apps/macos/Sources/Clawdis/ToolsSettings.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/macos/Sources/Clawdis/ToolsSettings.swift b/apps/macos/Sources/Clawdis/ToolsSettings.swift index f67f600e0..ad20f8328 100644 --- a/apps/macos/Sources/Clawdis/ToolsSettings.swift +++ b/apps/macos/Sources/Clawdis/ToolsSettings.swift @@ -205,6 +205,11 @@ private struct ToolRow: View { @State private var state: InstallState = .checking @State private var statusMessage: String? + private enum Layout { + // Ensure progress indicators and buttons occupy the same space so the row doesn't shift. + static let actionWidth: CGFloat = 96 + } + var body: some View { VStack(alignment: .leading, spacing: 6) { HStack(alignment: .top, spacing: 10) { @@ -248,6 +253,7 @@ private struct ToolRow: View { .buttonStyle(.borderedProminent) } } + .frame(width: Layout.actionWidth, alignment: .trailing) } private func refresh() {