mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
fixes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user