Prepare message attachments

This commit is contained in:
Sebastian J. Wolf 2020-09-23 23:41:17 +02:00
parent f2284a8fe9
commit e222ab115d

View file

@ -841,15 +841,11 @@ Page {
height: sendMessageColumn.height + Theme.paddingMedium
anchors.horizontalCenter: parent.horizontalCenter
Column {
id: sendMessageColumn
width: parent.width - newMessageSendButton.width
anchors.verticalCenter: parent.verticalCenter
TextArea {
id: newMessageTextField
width: parent.width
width: parent.width - attachmentIconButton.width - newMessageSendButton.width
height: Math.min(chatContainer.height / 3, implicitHeight)
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: Theme.fontSizeSmall
placeholderText: qsTr("Your message")
labelVisible: false
@ -897,16 +893,20 @@ Page {
}
}
}
}
Column {
anchors.bottom: parent.bottom
anchors.bottomMargin: Theme.paddingSmall
IconButton {
id: attachmentIconButton
icon.source: "image://theme/icon-m-attach"
anchors.verticalCenter: parent.verticalCenter
onClicked: {
}
}
IconButton {
id: newMessageSendButton
icon.source: "image://theme/icon-m-chat"
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
enabled: false
onClicked: {
if (newMessageColumn.editMessageId !== "0") {
@ -918,7 +918,7 @@ Page {
newMessageTextField.focus = false;
}
}
}
}
}