Various fixes

This commit is contained in:
Thomas Ricouard 2023-02-24 17:16:39 +01:00
parent 8e72430b4f
commit abb1c53ae6
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public struct AccountsListRow: View {
}
public var body: some View {
HStack {
HStack(alignment: .top) {
AvatarView(url: viewModel.account.avatar, size: .status)
VStack(alignment: .leading, spacing: 2) {
EmojiTextApp(.init(stringValue: viewModel.account.safeDisplayName), emojis: viewModel.account.emojis)

View File

@ -75,9 +75,9 @@ struct StatusRowHeaderView: View {
}
private var accountBadgeView: Text {
if viewModel.status.account.bot {
if (viewModel.status.reblogAsAsStatus ?? viewModel.status).account.bot {
return Text(Image(systemName: "gearshape.fill")) + Text(" ")
} else if viewModel.status.account.locked {
} else if (viewModel.status.reblogAsAsStatus ?? viewModel.status).account.locked {
return Text(Image(systemName: "lock.fill")) + Text(" ")
}
return Text("")