diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-09 21:41:00 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-09 21:41:00 +0200 |
commit | b0df40496d6c9b53eeb29e9d67b944f8e1fb8dd5 (patch) | |
tree | 6a123cdc9c52770e6e97c628147cb977d6b5ff62 /resources | |
parent | Basic bubble style (diff) | |
download | nheko-b0df40496d6c9b53eeb29e9d67b944f8e1fb8dd5.tar.xz |
Shrink replies
Diffstat (limited to '')
-rw-r--r-- | resources/qml/TimelineBubbleMessageStyle.qml | 2 | ||||
-rw-r--r-- | resources/qml/TimelineDefaultMessageStyle.qml | 2 | ||||
-rw-r--r-- | resources/qml/delegates/ImageMessage.qml | 2 | ||||
-rw-r--r-- | resources/qml/delegates/PlayableMediaMessage.qml | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/TimelineBubbleMessageStyle.qml b/resources/qml/TimelineBubbleMessageStyle.qml index c6c1aede..cf6f1dec 100644 --- a/resources/qml/TimelineBubbleMessageStyle.qml +++ b/resources/qml/TimelineBubbleMessageStyle.qml @@ -229,7 +229,7 @@ TimelineEvent { Rectangle { id: replyLine - height: Math.min( wrapper.reply?.height, timelineView.height / 5) + Nheko.paddingSmall + replyUserButton.height + height: Math.min( wrapper.reply?.height, timelineView.height / 10) + Nheko.paddingSmall + replyUserButton.height color: replyRow.userColor width: 4 } diff --git a/resources/qml/TimelineDefaultMessageStyle.qml b/resources/qml/TimelineDefaultMessageStyle.qml index f4906208..9685727d 100644 --- a/resources/qml/TimelineDefaultMessageStyle.qml +++ b/resources/qml/TimelineDefaultMessageStyle.qml @@ -217,7 +217,7 @@ TimelineEvent { Rectangle { id: replyLine - height: Math.min( wrapper.reply?.height, timelineView.height / 5) + Nheko.paddingSmall + replyUserButton.height + height: Math.min( wrapper.reply?.height, timelineView.height / 10) + Nheko.paddingSmall + replyUserButton.height color: replyRow.userColor width: 4 } diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml index 06a1a9e7..9c93c25b 100644 --- a/resources/qml/delegates/ImageMessage.qml +++ b/resources/qml/delegates/ImageMessage.qml @@ -18,7 +18,7 @@ AbstractButton { required property string filename required property string eventId required property int containerHeight - property double divisor: EventDelegateChooser.isReply ? 5 : 3 + property double divisor: EventDelegateChooser.isReply ? 10 : 4 EventDelegateChooser.keepAspectRatio: true EventDelegateChooser.maxWidth: originalWidth diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml index ac4a82b0..99928369 100644 --- a/resources/qml/delegates/PlayableMediaMessage.qml +++ b/resources/qml/delegates/PlayableMediaMessage.qml @@ -22,7 +22,7 @@ Item { required property string url required property string body required property string filesize - property double divisor: EventDelegateChooser.isReply ? 5 : 3 + property double divisor: EventDelegateChooser.isReply ? 10 : 4 property int tempWidth: originalWidth < 1? 400: originalWidth implicitWidth: type == MtxEvent.VideoMessage ? Math.round(tempWidth*Math.min((timelineView.height/divisor)/(tempWidth*proportionalHeight), 1)) : 500 width: Math.min(parent?.width ?? implicitWidth, implicitWidth) |