mirror of
https://github.com/muesli/telephant
synced 2024-11-26 05:10:18 +00:00
Move media above action buttons in MessageView
This commit is contained in:
parent
da8f00b86d
commit
68aac97fcf
1 changed files with 18 additions and 16 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue