This commit is contained in:
Max Goedjen 2020-03-05 22:53:04 -08:00
parent 9f5950269f
commit 54015091fe
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 3 additions and 3 deletions

View File

@ -19,11 +19,11 @@ struct SecretDetailView<SecretType: Secret>: View {
}.onDrag {
return NSItemProvider(item: NSData(data: self.keyWriter.openSSHFingerprint(secret: self.secret).data(using: .utf8)!), typeIdentifier: kUTTypeUTF8PlainText as String)
}
Spacer()
Spacer().frame(height: 10)
GroupBox(label: Text("Public Key")) {
Text(keyWriter.openSSHString(secret: secret))
.multilineTextAlignment(.leading)
.frame(minWidth: 150, maxWidth: .infinity, minHeight: 150)
.frame(minWidth: 150, maxWidth: .infinity)
.padding()
}
.onDrag {
@ -34,7 +34,7 @@ struct SecretDetailView<SecretType: Secret>: View {
Text("Copy")
}.padding(),
alignment: .bottomTrailing)
Spacer()
}
}.padding()
.frame(minHeight: 150, maxHeight: .infinity)