diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-22 17:08:32 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-23 20:07:15 +0100 |
commit | 9fd279c020bba2f433a0f9862277bc59fd621130 (patch) | |
tree | 69f901b0b4f51eee918d4d7d1822325090cd9485 /resources/qml/delegates/PlayableMediaMessage.qml | |
parent | Wrap text in pre tags (diff) | |
download | nheko-9fd279c020bba2f433a0f9862277bc59fd621130.tar.xz |
Show encryption enabled and use a non zero size for zero size vide
Diffstat (limited to 'resources/qml/delegates/PlayableMediaMessage.qml')
-rw-r--r-- | resources/qml/delegates/PlayableMediaMessage.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml index 68b09f7b..1207ac77 100644 --- a/resources/qml/delegates/PlayableMediaMessage.qml +++ b/resources/qml/delegates/PlayableMediaMessage.qml @@ -20,7 +20,7 @@ Rectangle { Rectangle { id: videoContainer visible: model.type == MtxEvent.VideoMessage - width: Math.min(parent.width, model.width) + width: Math.min(parent.width, model.width ? model.width : 400) // some media has 0 as size... height: width*model.proportionalHeight Image { anchors.fill: parent |