From ddf11d9a8cdd52f5daf85e8e753116d50dd11f48 Mon Sep 17 00:00:00 2001 From: Malte E Date: Mon, 14 Feb 2022 14:50:37 +0100 Subject: [PATCH] improve spacings --- resources/qml/MessageView.qml | 2 +- resources/qml/TimelineRow.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index f32d68a0..b65b9692 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -250,7 +250,7 @@ ScrollView { Column { topPadding: userName_.visible? 4: 0 - bottomPadding: Settings.bubbles? 2 : 3 + bottomPadding: Settings.bubbles? (isSender? 0 : 2) : 3 spacing: 8 visible: (previousMessageUserId !== userId || previousMessageDay !== day || isStateEvent !== previousMessageIsStateEvent) width: parentWidth diff --git a/resources/qml/TimelineRow.qml b/resources/qml/TimelineRow.qml index c7508a1c..b74fb5c1 100644 --- a/resources/qml/TimelineRow.qml +++ b/resources/qml/TimelineRow.qml @@ -80,7 +80,7 @@ Item { anchors.left: bubbleOnRight? undefined : parent.left anchors.right: bubbleOnRight? parent.right : undefined property int maxWidth: parent.width-anchors.leftMargin-anchors.rightMargin - width: Settings.bubbles? Math.min(maxWidth,implicitWidth+metadata.width) : maxWidth + width: Settings.bubbles? Math.min(maxWidth,implicitWidth+4) : maxWidth leftPadding: 4 rightPadding: (Settings.bubbles && !isStateEvent)? 4: 2 topPadding: (Settings.bubbles && !isStateEvent)? 4: 2