mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-16 12:16:42 +00:00
Further layout tweaks
This commit is contained in:
parent
d300bee96f
commit
44dbd379ba
1 changed files with 6 additions and 4 deletions
|
@ -22,8 +22,10 @@ struct StatusRowHeaderView: View {
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
Spacer()
|
Spacer()
|
||||||
|
if !redactionReasons.contains(.placeholder) {
|
||||||
dateView
|
dateView
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.accessibilityElement(children: .combine)
|
.accessibilityElement(children: .combine)
|
||||||
.accessibilityLabel(Text("\(viewModel.finalStatus.account.safeDisplayName)") + Text(", ") + Text(viewModel.finalStatus.createdAt.relativeFormatted))
|
.accessibilityLabel(Text("\(viewModel.finalStatus.account.safeDisplayName)") + Text(", ") + Text(viewModel.finalStatus.createdAt.relativeFormatted))
|
||||||
.accessibilityAction {
|
.accessibilityAction {
|
||||||
|
@ -83,9 +85,9 @@ struct StatusRowHeaderView: View {
|
||||||
|
|
||||||
private var dateView: some View {
|
private var dateView: some View {
|
||||||
Group {
|
Group {
|
||||||
Text(viewModel.finalStatus.createdAt.relativeFormatted) +
|
Text(Image(systemName: viewModel.finalStatus.visibility.iconName)) +
|
||||||
Text(" ⸱ ") +
|
Text(" ⸱ ") +
|
||||||
Text(Image(systemName: viewModel.finalStatus.visibility.iconName))
|
Text(viewModel.finalStatus.createdAt.relativeFormatted)
|
||||||
}
|
}
|
||||||
.font(.scaledFootnote)
|
.font(.scaledFootnote)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
|
|
Loading…
Reference in a new issue