Further layout tweaks

This commit is contained in:
Thomas Ricouard 2023-12-27 19:28:16 +01:00
parent d300bee96f
commit 44dbd379ba

View file

@ -22,8 +22,10 @@ struct StatusRowHeaderView: View {
}
.buttonStyle(.plain)
Spacer()
if !redactionReasons.contains(.placeholder) {
dateView
}
}
.accessibilityElement(children: .combine)
.accessibilityLabel(Text("\(viewModel.finalStatus.account.safeDisplayName)") + Text(", ") + Text(viewModel.finalStatus.createdAt.relativeFormatted))
.accessibilityAction {
@ -83,9 +85,9 @@ struct StatusRowHeaderView: View {
private var dateView: some View {
Group {
Text(viewModel.finalStatus.createdAt.relativeFormatted) +
Text(Image(systemName: viewModel.finalStatus.visibility.iconName)) +
Text("") +
Text(Image(systemName: viewModel.finalStatus.visibility.iconName))
Text(viewModel.finalStatus.createdAt.relativeFormatted)
}
.font(.scaledFootnote)
.foregroundStyle(.secondary)