Better status header

This commit is contained in:
Thomas Ricouard 2022-11-21 14:42:59 +01:00
parent a694c5d80c
commit 3c1b879d1a
2 changed files with 11 additions and 3 deletions

View File

@ -5,4 +5,5 @@ public struct Account: Codable, Identifiable {
public let username: String
public let displayName: String
public let avatar: URL
public let acct: String
}

View File

@ -12,14 +12,21 @@ struct StatusRowView: View {
content: { image in
image.resizable()
.aspectRatio(contentMode: .fit)
.cornerRadius(13)
.frame(maxWidth: 26, maxHeight: 26)
.cornerRadius(4)
.frame(maxWidth: 40, maxHeight: 40)
},
placeholder: {
ProgressView()
.frame(maxWidth: 40, maxHeight: 40)
}
)
Text(status.account.username)
VStack(alignment: .leading) {
Text(status.account.displayName)
.font(.headline)
Text("@\(status.account.acct)")
.font(.footnote)
.foregroundColor(.gray)
}
}
Text(status.content)
}