Rename SendBox root id
This commit is contained in:
parent
1981a0f79a
commit
34d68af51f
1
TODO.md
1
TODO.md
|
@ -1,5 +1,4 @@
|
||||||
- daybreak color
|
- daybreak color
|
||||||
- rename component id that are named "root"
|
|
||||||
- html links color
|
- html links color
|
||||||
- invite/leave/forget backend funcs
|
- invite/leave/forget backend funcs
|
||||||
- license headers
|
- license headers
|
||||||
|
|
|
@ -6,7 +6,7 @@ import "../utils.js" as Utils
|
||||||
HRectangle {
|
HRectangle {
|
||||||
function setFocus() { textArea.forceActiveFocus() }
|
function setFocus() { textArea.forceActiveFocus() }
|
||||||
|
|
||||||
id: root
|
id: sendBox
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumHeight: theme.bottomElementsHeight
|
Layout.minimumHeight: theme.bottomElementsHeight
|
||||||
Layout.preferredHeight: textArea.implicitHeight
|
Layout.preferredHeight: textArea.implicitHeight
|
||||||
|
@ -21,13 +21,13 @@ HRectangle {
|
||||||
id: avatar
|
id: avatar
|
||||||
name: chatPage.sender.displayName ||
|
name: chatPage.sender.displayName ||
|
||||||
Utils.stripUserId(chatPage.userId)
|
Utils.stripUserId(chatPage.userId)
|
||||||
dimension: root.Layout.minimumHeight
|
dimension: sendBox.Layout.minimumHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
HScrollableTextArea {
|
HScrollableTextArea {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: Math.max(0, root.Layout.minimumHeight - 34)
|
Layout.topMargin: Math.max(0, sendBox.Layout.minimumHeight - 34)
|
||||||
|
|
||||||
id: textArea
|
id: textArea
|
||||||
placeholderText: qsTr("Type a message...")
|
placeholderText: qsTr("Type a message...")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user