Use HRowLayout for typingMembersBar
This commit is contained in:
parent
4b2cbffc83
commit
7f46bafc9e
|
@ -11,17 +11,17 @@ HRectangle {
|
||||||
property alias label: typingLabel
|
property alias label: typingLabel
|
||||||
|
|
||||||
color: theme.chat.typingMembers.background
|
color: theme.chat.typingMembers.background
|
||||||
implicitWidth: childrenRect.width
|
implicitHeight: typingLabel.text ? typingLabel.height : 0
|
||||||
implicitHeight: typingLabel.text ? childrenRect.height : 0
|
|
||||||
|
|
||||||
Behavior on implicitHeight { HNumberAnimation {} }
|
Behavior on implicitHeight { HNumberAnimation {} }
|
||||||
|
|
||||||
Row {
|
HRowLayout {
|
||||||
spacing: 8
|
spacing: 8
|
||||||
leftPadding: spacing
|
anchors.fill: parent
|
||||||
rightPadding: spacing
|
Layout.leftMargin: spacing
|
||||||
topPadding: 2
|
Layout.rightMargin: spacing
|
||||||
bottomPadding: 2
|
Layout.topMargin: 2
|
||||||
|
Layout.bottomMargin: 2
|
||||||
|
|
||||||
HIcon {
|
HIcon {
|
||||||
id: icon
|
id: icon
|
||||||
|
@ -34,8 +34,8 @@ HRectangle {
|
||||||
text: chatPage.roomInfo.typingText
|
text: chatPage.roomInfo.typingText
|
||||||
textFormat: Text.StyledText
|
textFormat: Text.StyledText
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
width: typingMembersBar.width - icon.width -
|
|
||||||
parent.spacing - parent.leftPadding - parent.rightPadding
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user