This commit is contained in:
Mauro Romito
2025-07-17 16:21:54 +02:00
committed by Mauro
parent 600cf13bdf
commit 82e313044e
2 changed files with 10 additions and 0 deletions

View File

@@ -13,12 +13,17 @@ struct EditRoomAddressListRow: View {
var serverName: String
var shouldDisplayError: Bool
private var fullAddress: String {
"#\(aliasLocalPart):\(serverName)"
}
var body: some View {
ListRow(kind: .custom {
HStack(spacing: 0) {
Text("#")
.font(.compound.bodyLG)
.foregroundStyle(.compound.textSecondary)
.accessibilityHidden(true)
TextField("", text: $aliasLocalPart)
.textInputAutocapitalization(.never)
.autocorrectionDisabled()
@@ -27,9 +32,11 @@ struct EditRoomAddressListRow: View {
.font(.compound.bodyLG)
.foregroundStyle(.compound.textPrimary)
.padding(.horizontal, 8)
.accessibilityHint(L10n.a11yEditRoomAddressHint(fullAddress))
Text(":\(serverName)")
.font(.compound.bodyLG)
.foregroundStyle(.compound.textSecondary)
.accessibilityHidden(true)
}
.padding(ListRowPadding.textFieldInsets)
.environment(\.layoutDirection, .leftToRight)

View File

@@ -33,6 +33,9 @@ struct HomeScreenContent: View {
}
}
.disabled(true)
.accessibilityRepresentation {
Text(L10n.commonLoading)
}
case .empty:
HomeScreenEmptyStateLayout(minHeight: geometry.size.height) {
topSection