improve spacings

This commit is contained in:
Malte E 2022-02-14 14:50:37 +01:00
parent ce13ccd677
commit ddf11d9a8c
2 changed files with 2 additions and 2 deletions

View file

@ -250,7 +250,7 @@ ScrollView {
Column { Column {
topPadding: userName_.visible? 4: 0 topPadding: userName_.visible? 4: 0
bottomPadding: Settings.bubbles? 2 : 3 bottomPadding: Settings.bubbles? (isSender? 0 : 2) : 3
spacing: 8 spacing: 8
visible: (previousMessageUserId !== userId || previousMessageDay !== day || isStateEvent !== previousMessageIsStateEvent) visible: (previousMessageUserId !== userId || previousMessageDay !== day || isStateEvent !== previousMessageIsStateEvent)
width: parentWidth width: parentWidth

View file

@ -80,7 +80,7 @@ Item {
anchors.left: bubbleOnRight? undefined : parent.left anchors.left: bubbleOnRight? undefined : parent.left
anchors.right: bubbleOnRight? parent.right : undefined anchors.right: bubbleOnRight? parent.right : undefined
property int maxWidth: parent.width-anchors.leftMargin-anchors.rightMargin 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 leftPadding: 4
rightPadding: (Settings.bubbles && !isStateEvent)? 4: 2 rightPadding: (Settings.bubbles && !isStateEvent)? 4: 2
topPadding: (Settings.bubbles && !isStateEvent)? 4: 2 topPadding: (Settings.bubbles && !isStateEvent)? 4: 2