Rename SendBox root id

This commit is contained in:
miruka 2019-07-06 17:56:04 -04:00
parent 1981a0f79a
commit 34d68af51f
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
- daybreak color
- rename component id that are named "root"
- html links color
- invite/leave/forget backend funcs
- license headers

View File

@ -6,7 +6,7 @@ import "../utils.js" as Utils
HRectangle {
function setFocus() { textArea.forceActiveFocus() }
id: root
id: sendBox
Layout.fillWidth: true
Layout.minimumHeight: theme.bottomElementsHeight
Layout.preferredHeight: textArea.implicitHeight
@ -21,13 +21,13 @@ HRectangle {
id: avatar
name: chatPage.sender.displayName ||
Utils.stripUserId(chatPage.userId)
dimension: root.Layout.minimumHeight
dimension: sendBox.Layout.minimumHeight
}
HScrollableTextArea {
Layout.fillHeight: true
Layout.fillWidth: true
Layout.topMargin: Math.max(0, root.Layout.minimumHeight - 34)
Layout.topMargin: Math.max(0, sendBox.Layout.minimumHeight - 34)
id: textArea
placeholderText: qsTr("Type a message...")