make typing Rectangle extents cleaner

This commit is contained in:
Jussi Kuokkanen 2020-09-18 16:18:31 +03:00
parent bafe181010
commit 13658d536e

View file

@ -438,14 +438,14 @@ Page {
id: typingRect id: typingRect
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.leftMargin: 10
anchors.rightMargin: 10
color: (chat.model && chat.model.typingUsers.length > 0) ? colors.window : "transparent" color: (chat.model && chat.model.typingUsers.length > 0) ? colors.window : "transparent"
height: fontMetrics.height + 10 height: chatFooter.height
Label { Label {
id: typingDisplay id: typingDisplay
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 10
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 10
color: colors.text color: colors.text
text: chat.model ? chat.model.formatTypingUsers(chat.model.typingUsers, colors.window) : "" text: chat.model ? chat.model.formatTypingUsers(chat.model.typingUsers, colors.window) : ""
textFormat: Text.RichText textFormat: Text.RichText