Better sizing

This commit is contained in:
Max Goedjen 2020-03-10 23:59:42 -07:00
parent e0af56e505
commit 130eb3b2c4
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 28 additions and 27 deletions

View File

@ -15,6 +15,7 @@ struct EmptyStoreView: View {
struct EmptyStoreModifiableView: View {
var body: some View {
GeometryReader { windowGeometry in
VStack {
GeometryReader { g in
Path { path in
@ -33,13 +34,13 @@ struct EmptyStoreModifiableView: View {
path.addLine(to: CGPoint(x: g.size.width, y: -10))
path.addLine(to: CGPoint(x: g.size.width + 10, y: 0))
}.fill()
}.frame(height: 100).padding()
}.frame(height: (windowGeometry.size.height/2) - 20).padding()
Text("No Secrets").bold()
Text("Create a new one by clicking here.")
Spacer()
}.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
}
struct EmptyStoreModifiableView_Previews: PreviewProvider {