From 44dbd379bada687e34db4015b8cf88605da54f8c Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 27 Dec 2023 19:28:16 +0100 Subject: [PATCH] Further layout tweaks --- .../Status/Row/Subviews/StatusRowHeaderView.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift index 3aff0824..b4226a6b 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift @@ -22,7 +22,9 @@ struct StatusRowHeaderView: View { } .buttonStyle(.plain) Spacer() - dateView + if !redactionReasons.contains(.placeholder) { + dateView + } } .accessibilityElement(children: .combine) .accessibilityLabel(Text("\(viewModel.finalStatus.account.safeDisplayName)") + Text(", ") + Text(viewModel.finalStatus.createdAt.relativeFormatted)) @@ -83,9 +85,9 @@ struct StatusRowHeaderView: View { private var dateView: some View { Group { - Text(viewModel.finalStatus.createdAt.relativeFormatted) + - Text(" ⸱ ") + - Text(Image(systemName: viewModel.finalStatus.visibility.iconName)) + Text(Image(systemName: viewModel.finalStatus.visibility.iconName)) + + Text(" ⸱ ") + + Text(viewModel.finalStatus.createdAt.relativeFormatted) } .font(.scaledFootnote) .foregroundStyle(.secondary)