diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2021-11-08 19:18:11 -0500 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2021-11-08 19:18:11 -0500 |
commit | 13a5194c08090d7cac24f6873dee2cb2b92c3842 (patch) | |
tree | 1a93838ffadd9eeb393ab3d403a4a09cba5dce72 /resources/qml/delegates | |
parent | Merge remote-tracking branch 'nheko-im/master' into video_player_enhancements (diff) | |
download | nheko-13a5194c08090d7cac24f6873dee2cb2b92c3842.tar.xz |
Minor fixes for undefined qml behavior
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r-- | resources/qml/delegates/PlayableMediaMessage.qml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml index fbc4a637..eb788c6c 100644 --- a/resources/qml/delegates/PlayableMediaMessage.qml +++ b/resources/qml/delegates/PlayableMediaMessage.qml @@ -39,17 +39,13 @@ ColumnLayout { } id: content - Layout.maximumWidth: parent? parent.width: undefined + + Layout.fillWidth: true MxcMedia { id: mxcmedia // TODO: Show error in overlay or so? onError: console.log(error) roomm: room - onMediaStatusChanged: { - if (status == MxcMedia.LoadedMedia) { - progress.updatePositionTexts(); - } - } } Rectangle { @@ -65,9 +61,10 @@ ColumnLayout { property double divisor: isReply ? 4 : 2 property bool tooHigh: tempHeight > timelineRoot.height / divisor - Layout.maximumWidth: Layout.preferredWidth Layout.preferredHeight: tooHigh ? timelineRoot.height / divisor : tempHeight Layout.preferredWidth: tooHigh ? (timelineRoot.height / divisor) / proportionalHeight : tempWidth + Layout.maximumWidth: Layout.preferredWidth + Image { anchors.fill: parent source: thumbnailUrl.replace("mxc://", "image://MxcImage/") |