Vertically align message input

fixes #351
This commit is contained in:
Nicolas Werner 2021-12-12 00:03:00 +01:00
parent b4ef2ce60c
commit ad91784d86
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ Rectangle {
ScrollView {
id: textInput
Layout.alignment: Qt.AlignBottom // | Qt.AlignHCenter
Layout.alignment: Qt.AlignVCenter
Layout.maximumHeight: Window.height / 4
Layout.minimumHeight: Settings.fontSize
implicitWidth: inputBar.width - 5 * (22 + 16) - 24
@ -120,6 +120,7 @@ Rectangle {
placeholderTextColor: Nheko.colors.buttonText
color: Nheko.colors.text
width: textInput.width
verticalAlignment: TextEdit.AlignVCenter
wrapMode: TextEdit.Wrap
padding: 8
focus: true