mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Poll options can be multiline during creation (#2274)
This commit is contained in:
parent
756b96f7ff
commit
e8da21e340
@ -94,6 +94,8 @@ struct PollFormScreen: View {
|
||||
.accessibilityIdentifier(A11yIdentifiers.pollFormScreen.addOption)
|
||||
}
|
||||
}
|
||||
// Disables animations when the text view resizes for multiline
|
||||
.animation(.noAnimation, value: UUID())
|
||||
}
|
||||
|
||||
private var showResultsSection: some View {
|
||||
@ -166,13 +168,10 @@ private struct PollFormOptionRow: View {
|
||||
.accessibilityLabel(L10n.actionRemove)
|
||||
}
|
||||
|
||||
TextField(text: $text) {
|
||||
TextField(text: $text, axis: .vertical) {
|
||||
Text(placeholder)
|
||||
.compoundTextFieldPlaceholder()
|
||||
}
|
||||
.introspect(.textField, on: .supportedVersions) { textField in
|
||||
textField.clearButtonMode = .whileEditing
|
||||
}
|
||||
.tint(.compound.iconAccentTertiary)
|
||||
.alignmentGuide(.listRowSeparatorLeading) { _ in 0 }
|
||||
}
|
||||
|
BIN
UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.Edit.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.Edit.png
(Stored with Git LFS)
Binary file not shown.
BIN
UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.New.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.New.png
(Stored with Git LFS)
Binary file not shown.
1
changelog.d/2273.bugfix
Normal file
1
changelog.d/2273.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Options in poll form creation can be multiline.
|
Loading…
x
Reference in New Issue
Block a user