Limit height of message input field

This commit is contained in:
Sebastian J. Wolf 2020-09-23 21:38:20 +02:00
parent 0e1169e7f4
commit b0d35aac6c

View file

@ -849,6 +849,7 @@ Page {
TextArea { TextArea {
id: newMessageTextField id: newMessageTextField
width: parent.width width: parent.width
height: Math.min(chatContainer.height / 3, implicitHeight)
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
placeholderText: qsTr("Your message") placeholderText: qsTr("Your message")
labelVisible: false labelVisible: false