diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-09 03:49:45 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-09 03:49:45 +0200 |
commit | 15b5712f9a7d2f92bc3925848fedc621b6ba0471 (patch) | |
tree | 257a4be11fcd0de5c66117fee762f8e0f613df68 /resources/qml/MessageView.qml | |
parent | 25f19c11b1ab583002e0ba02acd0b4da67fbb164 (diff) |
Start working on bubble delegate
Diffstat (limited to 'resources/qml/MessageView.qml')
-rw-r--r-- | resources/qml/MessageView.qml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index 3ffe7d9a..5ea73fb5 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -59,11 +59,17 @@ Item { spacing: 2 verticalLayoutDirection: ListView.BottomToTop - delegate: TimelineDefaultMessageStyle { - messageActions: messageActionsC - messageContextMenu: messageContextMenuC - scrolledToThis: eventId === room.scrollTarget && (y + height > chat.y + chat.contentY && y < chat.y + chat.height + chat.contentY) + Component { + id: defaultMessageStyle + + TimelineDefaultMessageStyle { + messageActions: messageActionsC + messageContextMenu: messageContextMenuC + scrolledToThis: eventId === room.scrollTarget && (y + height > chat.y + chat.contentY && y < chat.y + chat.height + chat.contentY) + } } + + delegate: defaultMessageStyle footer: Item { anchors.horizontalCenter: parent.horizontalCenter anchors.margins: Nheko.paddingLarge |