Improve image size limiting

delegate-rework
Nicolas Werner 1 year ago
parent 9ed0e887bd
commit aff58272c6
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 1
      resources/qml/TimelineEvent.qml
  2. 1
      resources/qml/delegates/ImageMessage.qml

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

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

Loading…
Cancel
Save