From e2696ea92818f9709eca57b800fa5379cde0629e Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 10 Jul 2019 00:18:50 -0400 Subject: [PATCH] Prevent TypingMembersBar text from overflowing --- src/qml/Chat/TypingMembersBar.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qml/Chat/TypingMembersBar.qml b/src/qml/Chat/TypingMembersBar.qml index 6ea18370..015a9dc8 100644 --- a/src/qml/Chat/TypingMembersBar.qml +++ b/src/qml/Chat/TypingMembersBar.qml @@ -6,6 +6,8 @@ import QtQuick.Layouts 1.3 import "../Base" HRectangle { + id: typingMembersBar + property alias label: typingLabel color: theme.chat.typingMembers.background @@ -22,6 +24,7 @@ HRectangle { bottomPadding: 2 HIcon { + id: icon svgName: "typing" // TODO: animate height: typingLabel.height } @@ -30,8 +33,10 @@ HRectangle { id: typingLabel text: chatPage.roomInfo.typingText textFormat: Text.StyledText - elide: Text.ElideMiddle + elide: Text.ElideRight maximumLineCount: 1 + width: typingMembersBar.width - icon.width - + parent.spacing - parent.leftPadding - parent.rightPadding } } }