summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-03-08 14:39:01 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-03-08 14:39:22 +0100
commita071f55c7bfd1ea19de50a2466c854b664d6ea44 (patch)
tree94885fed944e1ace1b9a1b1447cac47be945aa70 /resources/qml
parentMerge pull request #142 from Alch-Emi/master (diff)
downloadnheko-a071f55c7bfd1ea19de50a2466c854b664d6ea44.tar.xz
Fix images without size
Diffstat (limited to 'resources/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 65e1c454..229f8f09 100644
--- a/resources/qml/delegates/ImageMessage.qml
+++ b/resources/qml/delegates/ImageMessage.qml
@@ -3,7 +3,7 @@ import QtQuick 2.6
 import im.nheko 1.0
 
 Item {
-	property double tempWidth: Math.min(parent ? parent.width : undefined, model.data.width)
+	property double tempWidth: Math.min(parent ? parent.width : undefined, model.data.width < 1 ? parent.width : model.data.width)
 	property double tempHeight: tempWidth * model.data.proportionalHeight
 
 	property bool tooHigh: tempHeight > timelineRoot.height / 2