diff --git a/src/constant/JamiTheme.qml b/src/constant/JamiTheme.qml index 4614a88813e7957a44026a60133875148fab8120..65e19e2389e4168129dfd1ce54a834f7bc628243 100644 --- a/src/constant/JamiTheme.qml +++ b/src/constant/JamiTheme.qml @@ -110,6 +110,7 @@ Item { property int preferredMarginSize: 16 property int preferredDialogWidth: 400 property int preferredDialogHeight: 300 + property int minimumPreviewWidth: 120 // Misc. property color white: "white" diff --git a/src/mainview/components/VideoCallPage.qml b/src/mainview/components/VideoCallPage.qml index 16bf1c52b06fbbf1ab8708c516a8ef7d80d7036d..b5d87684d96f9c877faa0b6dfd812bf34d7a400c 100644 --- a/src/mainview/components/VideoCallPage.qml +++ b/src/mainview/components/VideoCallPage.qml @@ -241,7 +241,7 @@ Rectangle { } } - width: videoCallPageMainRect.width / 4 + width: Math.max(videoCallPageMainRect.width / 5, JamiTheme.minimumPreviewWidth) height: { previewImageScalingFactorUpdated return previewRenderer.width * previewRenderer.getPreviewImageScalingFactor()