mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-22 15:16:36 +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 username: String
|
||||||
public let displayName: String
|
public let displayName: String
|
||||||
public let avatar: URL
|
public let avatar: URL
|
||||||
|
public let acct: String
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,14 +12,21 @@ struct StatusRowView: View {
|
||||||
content: { image in
|
content: { image in
|
||||||
image.resizable()
|
image.resizable()
|
||||||
.aspectRatio(contentMode: .fit)
|
.aspectRatio(contentMode: .fit)
|
||||||
.cornerRadius(13)
|
.cornerRadius(4)
|
||||||
.frame(maxWidth: 26, maxHeight: 26)
|
.frame(maxWidth: 40, maxHeight: 40)
|
||||||
},
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
ProgressView()
|
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)
|
Text(status.content)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue