change: decline and block design tweaks

This commit is contained in:
Mauro Romito
2025-04-10 17:56:00 +02:00
committed by Mauro
parent 88397792cf
commit b2c647b1af
19 changed files with 116 additions and 41 deletions
@@ -30,6 +30,9 @@ struct DeclineAndBlockScreen: View {
Section {
ListRow(label: .plain(title: L10n.screenDeclineAndBlockBlockUserOptionTitle),
kind: .toggle($context.shouldBlockUser))
} footer: {
Text(L10n.screenDeclineAndBlockBlockUserOptionDescription)
.compoundListSectionFooter()
}
}
@@ -37,12 +40,15 @@ struct DeclineAndBlockScreen: View {
Section {
ListRow(label: .plain(title: L10n.actionReportRoom),
kind: .toggle($context.shouldReport))
} footer: {
Text(L10n.screenDeclineAndBlockReportUserOptionDescription)
.compoundListSectionFooter()
}
}
private var reportReasonSection: some View {
Section {
ListRow(label: .plain(title: ""),
ListRow(label: .plain(title: L10n.screenDeclineAndBlockReportUserReasonPlaceholder),
kind: .textField(text: $context.reportReason, axis: .vertical))
.lineLimit(4, reservesSpace: true)
}