From deb109f15794076a1c38d00ea0ca6620e8019d56 Mon Sep 17 00:00:00 2001 From: Mauro <34335419+Velin92@users.noreply.github.com> Date: Mon, 11 Dec 2023 19:31:21 +0100 Subject: [PATCH] Poll title is displayed multiline when creating a poll (#2225) --- .../Screens/CreatePollScreen/View/PollFormScreen.swift | 2 +- .../__Snapshots__/PreviewTests/test_pollFormScreen.Edit.png | 4 ++-- .../__Snapshots__/PreviewTests/test_pollFormScreen.New.png | 4 ++-- changelog.d/2215.bugfix | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 changelog.d/2215.bugfix diff --git a/ElementX/Sources/Screens/CreatePollScreen/View/PollFormScreen.swift b/ElementX/Sources/Screens/CreatePollScreen/View/PollFormScreen.swift index b97d83b90..c44062031 100644 --- a/ElementX/Sources/Screens/CreatePollScreen/View/PollFormScreen.swift +++ b/ElementX/Sources/Screens/CreatePollScreen/View/PollFormScreen.swift @@ -50,7 +50,7 @@ struct PollFormScreen: View { private var questionSection: some View { Section { ListRow(label: .plain(title: L10n.screenCreatePollQuestionHint), - kind: .textField(text: $context.question)) + kind: .textField(text: $context.question, axis: .vertical)) .introspect(.textField, on: .supportedVersions) { textField in textField.clearButtonMode = .whileEditing } diff --git a/UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.Edit.png b/UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.Edit.png index 3993362f8..acdc87daf 100644 --- a/UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.Edit.png +++ b/UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.Edit.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b35a659b867b21712bceb7523dfa3c3f3c726b0dca8baea425aeb99c4c952e29 -size 128152 +oid sha256:b4be2cd725b1827517224eeee1def3f15c4a51b931bc38119faebc953a8ca5ab +size 128139 diff --git a/UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.New.png b/UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.New.png index 363342a5c..769c6fb16 100644 --- a/UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.New.png +++ b/UnitTests/__Snapshots__/PreviewTests/test_pollFormScreen.New.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:838e1140a68573de8781e620fa52652caf6b5ab8f53c25a277c8ec7762965c3d -size 124067 +oid sha256:e18f6203bb7bf2df1ac5910f1caa05161fe6866ae6183ca3cfb27e6efe507305 +size 126330 diff --git a/changelog.d/2215.bugfix b/changelog.d/2215.bugfix new file mode 100644 index 000000000..50b04b872 --- /dev/null +++ b/changelog.d/2215.bugfix @@ -0,0 +1 @@ +Poll title is displayed in multiline when creating a poll. \ No newline at end of file