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