[mirotalk] - improve avatar image size

This commit is contained in:
Miroslav Pejic
2022-09-19 08:55:56 +02:00
parent de59897083
commit 89ef5fc58f
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -2375,7 +2375,6 @@ function toggleVideoPin(position) {
videoMediaContainer.style.width = '25%';
videoMediaContainer.style.height = '100%';
videoMediaContainer.style.right = 0;
document.documentElement.style.setProperty('--vmi-wh', '15vw');
break;
case 'horizontal':
videoPinMediaContainer.style.width = '100%';
@@ -2385,7 +2384,6 @@ function toggleVideoPin(position) {
videoMediaContainer.style.width = null;
videoMediaContainer.style.width = '100% !important';
videoMediaContainer.style.height = '25%';
document.documentElement.style.setProperty('--vmi-wh', '15vh');
break;
}
resizeVideoMedia();
+1
View File
@@ -83,6 +83,7 @@ function resizeVideoMedia() {
max = max - Margin * 2;
setWidth(videoMediaContainer, Cameras, max, bigWidth, Margin, Height);
document.documentElement.style.setProperty('--vmi-wh', max / 3 + 'px');
}
/**