Minimum frames (#69)

This commit is contained in:
Max Goedjen
2020-03-21 18:10:37 -07:00
committed by GitHub
parent 2e9a3eb90d
commit 0a9ecb039e
3 changed files with 5 additions and 7 deletions

View File

@@ -72,7 +72,7 @@ struct ContentView<UpdaterType: UpdaterProtocol, AgentStatusCheckerType: AgentSt
} else {
NoStoresView()
}
}
}.frame(minWidth: 640, minHeight: 320)
}
func updateNotice() -> some View {

View File

@@ -27,7 +27,7 @@ struct SetupView: View {
}
.padding()
}
}
}.frame(minWidth: 640, minHeight: 400)
}
}
@@ -64,10 +64,8 @@ struct SetupStepView<NestedViewType: View>: View {
Text(text)
.opacity(completed ? 0.5 : 1)
.lineLimit(nil)
.frame(idealHeight: 0, maxHeight: .infinity)
if nestedView != nil {
Spacer()
nestedView!
nestedView!.padding()
}
}
.padding()
@@ -92,6 +90,7 @@ struct SetupStepCommandView: View {
.lineLimit(nil)
.font(.system(.caption, design: .monospaced))
.multilineTextAlignment(.leading)
.frame(minHeight: 50)
HStack {
Spacer()
Button(action: copy) {