Tweak layout.

This commit is contained in:
Max Goedjen 2020-09-18 15:45:40 -07:00
parent 39b757af36
commit 18ef642ba7
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8

View File

@ -22,10 +22,9 @@ struct SecretDetailView<SecretType: Secret>: View {
}
Spacer().frame(height: 10)
GroupBox(label: Text("Public Key")) {
VStack {
VStack(alignment: .leading) {
Text(keyWriter.openSSHString(secret: secret))
.multilineTextAlignment(.leading)
.frame(minWidth: 150, maxWidth: .infinity)
HStack {
Spacer()
Button(action: copy) {
@ -33,6 +32,7 @@ struct SecretDetailView<SecretType: Secret>: View {
}
}
}
.frame(minWidth: 150, maxWidth: .infinity)
.padding()
}
.onDrag {