mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-27 09:30:37 +00:00
Further improvement to the post header
This commit is contained in:
parent
ed583a937d
commit
b64b21be20
1 changed files with 10 additions and 8 deletions
|
@ -42,16 +42,20 @@ struct StatusRowHeaderView: View {
|
|||
.lineLimit(1)
|
||||
if theme.avatarPosition == .leading {
|
||||
dateView
|
||||
.offset(y: 1)
|
||||
.font(.scaledFootnote)
|
||||
.foregroundColor(.gray)
|
||||
.lineLimit(1)
|
||||
.offset(y: 1)
|
||||
} else {
|
||||
Text("@\(theme.displayFullUsername ? status.account.acct : status.account.username)")
|
||||
.font(.scaledFootnote)
|
||||
.foregroundColor(.gray)
|
||||
.lineLimit(1)
|
||||
.offset(y: 1)
|
||||
}
|
||||
}
|
||||
if theme.avatarPosition == .top {
|
||||
HStack(spacing: 0) {
|
||||
Text("@\(theme.displayFullUsername ? status.account.acct : status.account.username)") +
|
||||
Text(" ⸱ ") +
|
||||
dateView
|
||||
}
|
||||
dateView
|
||||
.font(.scaledFootnote)
|
||||
.foregroundColor(.gray)
|
||||
.lineLimit(1)
|
||||
|
@ -64,8 +68,6 @@ struct StatusRowHeaderView: View {
|
|||
Text(status.createdAt.relativeFormatted) +
|
||||
Text(" ⸱ ") +
|
||||
Text(Image(systemName: viewModel.status.visibility.iconName))
|
||||
.font(.scaledFootnote)
|
||||
.foregroundColor(.gray)
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
|
|
Loading…
Reference in a new issue