Smaller display for our own media in like/share notifications

This commit is contained in:
Christian Muehlhaeuser 2019-05-09 02:09:26 +02:00
parent 6517d781e5
commit 335314510f
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -162,7 +162,9 @@ ColumnLayout {
Layout.topMargin: 4
Layout.fillWidth: true
// Layout.maximumWidth: sourceSize.width
Layout.maximumHeight: Math.min(384, paintedHeight + 8)
Layout.maximumHeight: (accountBridge.username == author && (like || forward)) ?
Math.min(384 / 3, paintedHeight + 8) :
Math.min(384, paintedHeight + 8)
source: media
fillMode: Image.PreserveAspectFit
verticalAlignment: Image.AlignBottom