Improve image size limiting

This commit is contained in:
Nicolas Werner 2023-08-27 12:38:48 +02:00
parent 9ed0e887bd
commit aff58272c6
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 2 additions and 0 deletions

View file

@ -142,6 +142,7 @@ EventDelegateChooser {
Layout.fillWidth: true Layout.fillWidth: true
Layout.maximumWidth: tempWidth Layout.maximumWidth: tempWidth
Layout.maximumHeight: timelineView.height / 8
containerHeight: timelineView.height containerHeight: timelineView.height
} }
} }

View file

@ -117,6 +117,7 @@ AbstractButton {
source: url != "" ? (url.replace("mxc://", "image://MxcImage/") + "?scale") : "" source: url != "" ? (url.replace("mxc://", "image://MxcImage/") + "?scale") : ""
asynchronous: true asynchronous: true
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
horizontalAlignment: Image.AlignLeft
smooth: true smooth: true
mipmap: true mipmap: true