More space for message input field

This commit is contained in:
Sebastian J. Wolf 2020-09-13 22:21:27 +02:00
parent fdf89fd8a8
commit 386c4c871f

View file

@ -624,18 +624,19 @@ Page {
width: parent.width width: parent.width
height: sendMessageColumn.height + ( 2 * Theme.paddingLarge ) height: sendMessageColumn.height + ( 2 * Theme.paddingLarge )
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: Theme.paddingMedium
Column { Column {
id: sendMessageColumn id: sendMessageColumn
width: parent.width - newMessageSendButton.width - Theme.paddingMedium width: parent.width - newMessageSendButton.width
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
TextArea { TextArea {
id: newMessageTextField id: newMessageTextField
width: parent.width width: parent.width
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
placeholderText: qsTr("Your message") placeholderText: qsTr("Your message")
labelVisible: false labelVisible: false
textLeftMargin: 0
onFocusChanged: { onFocusChanged: {
if (!focus) { if (!focus) {
newMessageInReplyToRow.inReplyToMessage = null; newMessageInReplyToRow.inReplyToMessage = null;
@ -645,9 +646,9 @@ Page {
} }
Column { Column {
width: newMessageSendButton.width
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: Theme.paddingLarge anchors.bottomMargin: Theme.paddingLarge
IconButton { IconButton {
id: newMessageSendButton id: newMessageSendButton
icon.source: "image://theme/icon-m-chat" icon.source: "image://theme/icon-m-chat"