mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 07:36:48 +00:00
Optimize some text
This commit is contained in:
parent
cd60e0ce1a
commit
2ab52d3d3e
1 changed files with 6 additions and 10 deletions
|
@ -27,7 +27,7 @@ struct StatusRowHeaderView: View {
|
|||
}
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
.accessibilityLabel(Text("\(viewModel.finalStatus.account.safeDisplayName)") + Text(", ") + Text(viewModel.finalStatus.createdAt.relativeFormatted))
|
||||
.accessibilityLabel(Text("\(viewModel.finalStatus.account.safeDisplayName), \(viewModel.finalStatus.createdAt.relativeFormatted)"))
|
||||
.accessibilityAction {
|
||||
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
|
||||
}
|
||||
|
@ -84,21 +84,17 @@ struct StatusRowHeaderView: View {
|
|||
}
|
||||
}
|
||||
|
||||
private var accountBadgeView: Text {
|
||||
private var accountBadgeView: Text? {
|
||||
if (viewModel.status.reblogAsAsStatus ?? viewModel.status).account.bot {
|
||||
return Text(Image(systemName: "poweroutlet.type.b.fill")) + Text(" ")
|
||||
return Text("\(Image(systemName: "poweroutlet.type.b.fill")) ")
|
||||
} else if (viewModel.status.reblogAsAsStatus ?? viewModel.status).account.locked {
|
||||
return Text(Image(systemName: "lock.fill")) + Text(" ")
|
||||
return Text("\(Image(systemName: "lock.fill")) ")
|
||||
}
|
||||
return Text("")
|
||||
return nil
|
||||
}
|
||||
|
||||
private var dateView: some View {
|
||||
Group {
|
||||
Text(Image(systemName: viewModel.finalStatus.visibility.iconName)) +
|
||||
Text(" ⸱ ") +
|
||||
Text(viewModel.finalStatus.createdAt.relativeFormatted)
|
||||
}
|
||||
Text("\(Image(systemName: viewModel.finalStatus.visibility.iconName)) ⸱ \(viewModel.finalStatus.createdAt.relativeFormatted)")
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.font(.scaledFootnote)
|
||||
.foregroundStyle(.secondary)
|
||||
|
|
Loading…
Reference in a new issue