diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-03-09 20:15:37 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-03-09 20:15:37 +0100 |
commit | 7a11b69f998553056b568d163c60aa635114fcd7 (patch) | |
tree | c381f4a041507fb253cb769deccb07593655b59f /resources/qml/delegates | |
parent | Fix a few alignment issues in the hover menu (diff) | |
download | nheko-7a11b69f998553056b568d163c60aa635114fcd7.tar.xz |
Fix images being cropped instead of scaled
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r-- | resources/qml/delegates/ImageMessage.qml | 2 | ||||
-rw-r--r-- | resources/qml/delegates/PlayableMediaMessage.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml index 7664d6fd..efd4f4a5 100644 --- a/resources/qml/delegates/ImageMessage.qml +++ b/resources/qml/delegates/ImageMessage.qml @@ -45,7 +45,7 @@ Item { visible: !mxcimage.loaded anchors.fill: parent - source: url.replace("mxc://", "image://MxcImage/") + source: url.replace("mxc://", "image://MxcImage/") + "?scale" asynchronous: true fillMode: Image.PreserveAspectFit smooth: true diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml index 5188b80e..4f19275d 100644 --- a/resources/qml/delegates/PlayableMediaMessage.qml +++ b/resources/qml/delegates/PlayableMediaMessage.qml @@ -57,7 +57,7 @@ Item { Image { anchors.fill: parent - source: thumbnailUrl.replace("mxc://", "image://MxcImage/") + source: thumbnailUrl.replace("mxc://", "image://MxcImage/") + "?scale" asynchronous: true fillMode: Image.PreserveAspectFit |