summary refs log tree commit diff
path: root/resources/qml/delegates/ImageMessage.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-30 19:32:28 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-31 00:48:55 +0100
commit750c64f32363df062bb44c0206f5ecb831ee9757 (patch)
tree8d7ac271bceba73164742e0919c2199da45e4401 /resources/qml/delegates/ImageMessage.qml
parentFix wrapping in member events (diff)
downloadnheko-750c64f32363df062bb44c0206f5ecb831ee9757.tar.xz
Get rid of some useless code
Diffstat (limited to 'resources/qml/delegates/ImageMessage.qml')
-rw-r--r--resources/qml/delegates/ImageMessage.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml

index b8522a74..2cc86d5a 100644 --- a/resources/qml/delegates/ImageMessage.qml +++ b/resources/qml/delegates/ImageMessage.qml
@@ -16,7 +16,7 @@ Item { required property string filename required property bool isReply required property string eventId - property double tempWidth: Math.min(parent ? parent.width : undefined, originalWidth < 1 ? 200 : originalWidth) + property double tempWidth: Math.min(parent.width, originalWidth < 1 ? 200 : originalWidth) property double tempHeight: tempWidth * proportionalHeight property double divisor: isReply ? 5 : 3 property bool tooHigh: tempHeight > timelineView.height / divisor