summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorMalte E <97891689+maltee1@users.noreply.github.com>2022-02-24 03:16:39 +0100
committerGitHub <noreply@github.com>2022-02-24 02:16:39 +0000
commit5108955df20a8e73e9c02b9e32a62177f03dc7e8 (patch)
treec89850182dd9168710f3c8e6638d739e08f66cbb /resources/qml/delegates
parentMerge pull request #956 from maltee1/mobile_room_directory (diff)
downloadnheko-5108955df20a8e73e9c02b9e32a62177f03dc7e8.tar.xz
making userName_ an AbstractButton should play nicely with ListView (#961)
* making userName_ an AbstractButton should make it play nicely with the ListView

* make Avatar an AbstractButton

* make userName_ in Reply.qml an AbstractButton

* use alias for avatar background color and fix margin of username in reply
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/Reply.qml17
1 files changed, 7 insertions, 10 deletions
diff --git a/resources/qml/delegates/Reply.qml b/resources/qml/delegates/Reply.qml

index a439b2eb..f26bc5aa 100644 --- a/resources/qml/delegates/Reply.qml +++ b/resources/qml/delegates/Reply.qml
@@ -82,19 +82,16 @@ Item { gesturePolicy: TapHandler.ReleaseWithinBounds } - Text { - Layout.leftMargin: 4 + AbstractButton { id: userName_ + Layout.leftMargin: 4 + contentItem: Text { - text: TimelineManager.escapeEmoji(userName) - color: r.userColor - textFormat: Text.RichText - - TapHandler { - onSingleTapped: room.openUserProfile(userId) - gesturePolicy: TapHandler.ReleaseWithinBounds + text: TimelineManager.escapeEmoji(userName) + color: r.userColor + textFormat: Text.RichText } - + onClicked: room.openUserProfile(userId) } MessageDelegate {