[mirotalk] - fix video circle

This commit is contained in:
Miroslav Pejic
2025-12-18 10:11:57 +01:00
parent fe6342f6f4
commit fe77dac82b
9 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# ====================================================
# MiroTalk P2P v.1.6.85 - Environment Configuration
# MiroTalk P2P v.1.6.86 - Environment Configuration
# ====================================================
# App environment
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* ==============================================
* MiroTalk P2P v.1.6.85 - Configuration File
* MiroTalk P2P v.1.6.86 - Configuration File
* ==============================================
*
* Branding and customizations require a license:
+1 -1
View File
@@ -45,7 +45,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.85
* @version 1.6.86
*
*/
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "mirotalk",
"version": "1.6.85",
"version": "1.6.86",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mirotalk",
"version": "1.6.85",
"version": "1.6.86",
"license": "AGPL-3.0",
"dependencies": {
"@mattermost/client": "11.2.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.6.85",
"version": "1.6.86",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
+4 -6
View File
@@ -281,12 +281,10 @@
width: var(--vmi-wh);
height: var(--vmi-wh);
border-radius: 50%;
/* center */
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
/* reliable centering - works in all scenarios */
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
transition: box-shadow 0.2s ease;
}
+1 -1
View File
@@ -77,7 +77,7 @@ let brand = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: 'WebRTC P2P v1.6.85',
title: 'WebRTC P2P v1.6.86',
html: `
<button
id="support-button"
+2 -2
View File
@@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.6.85
* @version 1.6.86
*
*/
@@ -13388,7 +13388,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.6.85',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.6.86',
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
customClass: { image: 'img-about' },
html: `
+4 -1
View File
@@ -104,7 +104,10 @@ function resizeVideoMedia() {
max = best - Margin * 2;
setWidth(Tiles, max, bigWidth, Margin, Height, isOneVideoElement);
setSP('--vmi-wh', max / 3 + 'px');
// When alone, use fixed avatar size; otherwise proportional to tile
const avatarSize = isOneVideoElement ? Math.min(200, Math.max(120, Height * 0.25)) : max / 3;
setSP('--vmi-wh', avatarSize + 'px');
}
/**