Small Knock adjustments (#3568)

* small adjustments

* autocorrection disabled
This commit is contained in:
Mauro
2024-11-28 18:02:07 +01:00
committed by GitHub
parent 000073c7a0
commit d48fb64468
3 changed files with 4 additions and 4 deletions
@@ -92,7 +92,7 @@ class CreateRoomViewModel: CreateRoomViewModelType, CreateRoomViewModelProtocol
case .removeImage:
actionsSubject.send(.removeImage)
case .updateAliasLocalPart(let aliasLocalPart):
state.aliasLocalPart = aliasLocalPart
state.aliasLocalPart = aliasLocalPart.lowercased()
// If this has been called this means that the user wants a custom address not necessarily reflecting the name
// So we disable the two from syncing.
syncNameAndAlias = false
@@ -195,8 +195,8 @@ struct CreateRoomScreen: View {
.foregroundStyle(.compound.textSecondary)
TextField("", text: aliasBinding)
.autocapitalization(.none)
.textCase(.lowercase)
.textInputAutocapitalization(.never)
.autocorrectionDisabled()
.tint(.compound.iconAccentTertiary)
.font(.compound.bodyLG)
.foregroundStyle(.compound.textPrimary)
@@ -110,7 +110,7 @@ struct JoinRoomScreen: View {
HStack(spacing: 0) {
TextField("", text: $context.knockMessage, axis: .vertical)
.onChange(of: context.knockMessage) { _, newValue in
context.knockMessage = String(newValue.prefix(1000))
context.knockMessage = String(newValue.prefix(500))
}
.lineLimit(4, reservesSpace: true)
.font(.compound.bodyMD)