summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/Reply.qml13
1 files changed, 8 insertions, 5 deletions
diff --git a/resources/qml/delegates/Reply.qml b/resources/qml/delegates/Reply.qml

index f5756390..513b7c0b 100644 --- a/resources/qml/delegates/Reply.qml +++ b/resources/qml/delegates/Reply.qml
@@ -9,6 +9,7 @@ import QtQuick.Controls 2.3 import QtQuick.Layouts 1.2 import QtQuick.Window 2.13 import im.nheko 1.0 +import "../" Item { id: r @@ -39,7 +40,7 @@ Item { height: replyContainer.height implicitHeight: replyContainer.height - implicitWidth: visible? colorLine.width+replyContainer.implicitWidth : 0 + implicitWidth: visible? colorLine.width+Math.max(replyContainer.implicitWidth,userName_.fullTextWidth) : 0 // visible? seems to be causing issues CursorShape { anchors.fill: parent @@ -83,13 +84,15 @@ Item { } AbstractButton { - id: userName_ Layout.leftMargin: 4 - contentItem: Text { - - text: TimelineManager.escapeEmoji(userName) + Layout.fillWidth: true + contentItem: ElidedLabel { + id: userName_ + fullText: userName color: r.userColor textFormat: Text.RichText + width: parent.width + elideWidth: width } onClicked: room.openUserProfile(userId) }