mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-22 07:06:40 +00:00
Better status header
This commit is contained in:
parent
a694c5d80c
commit
3c1b879d1a
2 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue