From ee7fe04bd167fe6171ecf1a98b489e9602c2b67d Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 21 Jul 2021 12:16:07 +0200 Subject: [PATCH] fix(CreateCategoryPopup): ensure validation message is position correctly Fixes #2973 --- ui/imports/Utils.qml | 3 +-- ui/shared/Input.qml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/imports/Utils.qml b/ui/imports/Utils.qml index 45b7543c35..6056d9ada8 100644 --- a/ui/imports/Utils.qml +++ b/ui/imports/Utils.qml @@ -629,8 +629,7 @@ QtObject { let errMsg = "" if(validation & Utils.Validate.NoEmpty && str === "") { - //% "You need to enter a %1" - errMsg = qsTrId("you-need-to-enter-a--1").arg(fieldName) + errMsg = qsTr("You need to enter a %1").arg(fieldName) } if(validation & Utils.Validate.TextLength && str.length > limit) { diff --git a/ui/shared/Input.qml b/ui/shared/Input.qml index becb41a117..0515d6e5cc 100644 --- a/ui/shared/Input.qml +++ b/ui/shared/Input.qml @@ -178,12 +178,12 @@ Item { text: validationError anchors.top: inputField.bottom anchors.topMargin: validationErrorTopMargin + anchors.right: inputField.right selectByMouse: true readOnly: true font.pixelSize: 12 height: 16 color: validationErrorColor - width: inputField.width wrapMode: TextEdit.Wrap } }