summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-02 02:50:54 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-08 22:32:09 +0200
commit8e61596d157880b4b7b96518c33faf947370d8aa (patch)
tree54120286a46481d5c3b1bc10e55ba22514720517 /resources/qml
parentImprove timestamp layouting in room list (diff)
downloadnheko-8e61596d157880b4b7b96518c33faf947370d8aa.tar.xz
Fix message height
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/MessageView.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index 57bfe216..a38a2f49 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -103,7 +103,7 @@ Item {
 
             ListView.delayRemove: true
             anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined
-            height: section.active ? section.height + timelinerow.height : timelinerow.height
+            height: (section.item?.height ?? 0) + timelinerow.height
             width: chat.delegateMaxWidth
 
             Loader {
@@ -506,7 +506,6 @@ Item {
 
             Column {
                 bottomPadding: Settings.bubbles ? (isSender && previousMessageDay == day ? 0 : 2) : 3
-                height: ((previousMessageDay !== day) ? dateBubble.height : 0) + (isStateEvent ? 0 : userName.height + 8)
                 spacing: 8
                 topPadding: userName_.visible ? 4 : 0
                 visible: (previousMessageUserId !== userId || previousMessageDay !== day || isStateEvent !== previousMessageIsStateEvent)