diff --git a/linphone-desktop/ui/modules/Linphone/Chat/FileMessage.qml b/linphone-desktop/ui/modules/Linphone/Chat/FileMessage.qml index b91e82540..11e62d980 100644 --- a/linphone-desktop/ui/modules/Linphone/Chat/FileMessage.qml +++ b/linphone-desktop/ui/modules/Linphone/Chat/FileMessage.qml @@ -108,8 +108,8 @@ Row { Loader { id: thumbnailProvider - Layout.preferredHeight: ChatStyle.entry.message.file.thumbnail.height - Layout.preferredWidth: ChatStyle.entry.message.file.thumbnail.width + Layout.fillHeight: true + Layout.preferredWidth: parent.height sourceComponent: $chatEntry.thumbnail ? thumbnail : extension @@ -259,6 +259,7 @@ Row { onMouseXChanged: handleMouseMove.call(this, mouse) onMouseYChanged: handleMouseMove.call(this, mouse) + onExited: thumbnailProvider.state = '' onClicked: { // TODO: Handle open. diff --git a/linphone-desktop/ui/modules/Linphone/Styles/Chat/ChatStyle.qml b/linphone-desktop/ui/modules/Linphone/Styles/Chat/ChatStyle.qml index 173b97a19..463d0b5b8 100644 --- a/linphone-desktop/ui/modules/Linphone/Styles/Chat/ChatStyle.qml +++ b/linphone-desktop/ui/modules/Linphone/Styles/Chat/ChatStyle.qml @@ -67,7 +67,7 @@ QtObject { property int width: 250 property QtObject animation: QtObject { - property int duration: 300 + property int duration: 200 property real to: 1.5 } @@ -97,11 +97,6 @@ QtObject { } } } - - property QtObject thumbnail: QtObject { - property int height: 50 - property int width: 50 - } } property QtObject images: QtObject {