This commit is contained in:
Mauro Romito
2025-07-17 16:21:54 +02:00
committed by Mauro
parent 57469fb8eb
commit 20f897256c
2 changed files with 10 additions and 0 deletions
@@ -13,12 +13,17 @@ struct EditRoomAddressListRow: View {
var serverName: String var serverName: String
var shouldDisplayError: Bool var shouldDisplayError: Bool
private var fullAddress: String {
"#\(aliasLocalPart):\(serverName)"
}
var body: some View { var body: some View {
ListRow(kind: .custom { ListRow(kind: .custom {
HStack(spacing: 0) { HStack(spacing: 0) {
Text("#") Text("#")
.font(.compound.bodyLG) .font(.compound.bodyLG)
.foregroundStyle(.compound.textSecondary) .foregroundStyle(.compound.textSecondary)
.accessibilityHidden(true)
TextField("", text: $aliasLocalPart) TextField("", text: $aliasLocalPart)
.textInputAutocapitalization(.never) .textInputAutocapitalization(.never)
.autocorrectionDisabled() .autocorrectionDisabled()
@@ -27,9 +32,11 @@ struct EditRoomAddressListRow: View {
.font(.compound.bodyLG) .font(.compound.bodyLG)
.foregroundStyle(.compound.textPrimary) .foregroundStyle(.compound.textPrimary)
.padding(.horizontal, 8) .padding(.horizontal, 8)
.accessibilityHint(L10n.a11yEditRoomAddressHint(fullAddress))
Text(":\(serverName)") Text(":\(serverName)")
.font(.compound.bodyLG) .font(.compound.bodyLG)
.foregroundStyle(.compound.textSecondary) .foregroundStyle(.compound.textSecondary)
.accessibilityHidden(true)
} }
.padding(ListRowPadding.textFieldInsets) .padding(ListRowPadding.textFieldInsets)
.environment(\.layoutDirection, .leftToRight) .environment(\.layoutDirection, .leftToRight)
@@ -33,6 +33,9 @@ struct HomeScreenContent: View {
} }
} }
.disabled(true) .disabled(true)
.accessibilityRepresentation {
Text(L10n.commonLoading)
}
case .empty: case .empty:
HomeScreenEmptyStateLayout(minHeight: geometry.size.height) { HomeScreenEmptyStateLayout(minHeight: geometry.size.height) {
topSection topSection