From 6f3ed5b2823b7d8f5c522448300ba09db56c1512 Mon Sep 17 00:00:00 2001 From: Malte E Date: Mon, 14 Feb 2022 21:07:03 +0100 Subject: space-saving metadata placement --- resources/qml/delegates/ImageMessage.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'resources/qml/delegates/ImageMessage.qml') diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml index a13bb4f6..fea3eaef 100644 --- a/resources/qml/delegates/ImageMessage.qml +++ b/resources/qml/delegates/ImageMessage.qml @@ -20,9 +20,12 @@ Item { property double divisor: isReply ? 5 : 3 implicitWidth: Math.round(originalWidth*Math.min((timelineView.height/divisor)/(originalWidth*proportionalHeight), 1)) - width: parent.width + width: Math.min(parent.width,implicitWidth) height: width*proportionalHeight + property int metadataWidth + property bool fitsMetadata: (parent.width - width) > metadataWidth+4 + Image { id: blurhash_ -- cgit 1.5.1