mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-12-01 14:58:47 +03:00
86f4119a05
I suck at sizing so the images in the message are currently hardcoded to 300 pixels in width...
14 lines
242 B
QML
14 lines
242 B
QML
import QtQuick 2.6
|
|
|
|
Item {
|
|
width: 300
|
|
height: 300 * eventData.proportionalHeight
|
|
|
|
Image {
|
|
anchors.fill: parent
|
|
|
|
source: eventData.url.replace("mxc://", "image://MxcImage/")
|
|
asynchronous: true
|
|
fillMode: Image.PreserveAspectFit
|
|
}
|
|
}
|