fix: stabilize tools action width
parent
faca83e1e8
commit
c74c1a0c5f
|
|
@ -205,6 +205,11 @@ private struct ToolRow: View {
|
||||||
@State private var state: InstallState = .checking
|
@State private var state: InstallState = .checking
|
||||||
@State private var statusMessage: String?
|
@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 {
|
var body: some View {
|
||||||
VStack(alignment: .leading, spacing: 6) {
|
VStack(alignment: .leading, spacing: 6) {
|
||||||
HStack(alignment: .top, spacing: 10) {
|
HStack(alignment: .top, spacing: 10) {
|
||||||
|
|
@ -248,6 +253,7 @@ private struct ToolRow: View {
|
||||||
.buttonStyle(.borderedProminent)
|
.buttonStyle(.borderedProminent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.frame(width: Layout.actionWidth, alignment: .trailing)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func refresh() {
|
private func refresh() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue