Move media above action buttons in MessageView

This commit is contained in:
Christian Muehlhaeuser 2019-05-05 14:52:07 +02:00
parent da8f00b86d
commit 68aac97fcf
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -140,6 +140,24 @@ ColumnLayout {
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}
ImageButton {
visible: media != ""
Layout.topMargin: 4
Layout.fillWidth: true
// Layout.maximumWidth: sourceSize.width
Layout.maximumHeight: Math.min(384, paintedHeight + 8)
source: media
fillMode: Image.PreserveAspectFit
verticalAlignment: Image.AlignBottom
autoTransform: true
opacity: 0.2
onClicked: function() {
Qt.openUrlExternally(media)
}
}
RowLayout {
anchors.left: parent.left
anchors.right: parent.right
@ -202,22 +220,6 @@ ColumnLayout {
}
}
}
ImageButton {
visible: media != ""
Layout.fillWidth: true
// Layout.maximumWidth: sourceSize.width
Layout.maximumHeight: Math.min(384, paintedHeight + 8)
source: media
fillMode: Image.PreserveAspectFit
verticalAlignment: Image.AlignBottom
autoTransform: true
opacity: 0.2
onClicked: function() {
Qt.openUrlExternally(media)
}
}
}
}
}