mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-10-19 12:49:53 +02:00
Fallback icon (#851)
This commit is contained in:
@@ -21,10 +21,18 @@ struct PendingRequestsView: View {
|
||||
if let first = group.element.first {
|
||||
HStack {
|
||||
HStack {
|
||||
Image(nsImage: .init(byReferencing: first.provenance.origin.iconURL!))
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.frame(width: 50)
|
||||
if let iconURL = first.provenance.origin.iconURL {
|
||||
Image(nsImage: .init(byReferencing: iconURL))
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.frame(width: 50)
|
||||
} else {
|
||||
Image(systemName: "app.grid")
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.fontWeight(.regular)
|
||||
.frame(width: 50)
|
||||
}
|
||||
VStack(alignment: .leading) {
|
||||
Text(first.provenance.origin.displayName)
|
||||
.font(.subheadline)
|
||||
|
||||
Reference in New Issue
Block a user