Skip to content

Commit eebbb72

Browse files
[mirotalksfu] - fix video circle
1 parent 9d7f460 commit eebbb72

File tree

10 files changed

+18
-17
lines changed

10 files changed

+18
-17
lines changed

.env.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ====================================================
2-
# MiroTalk SFU v.2.0.66 - Environment Configuration
2+
# MiroTalk SFU v.2.0.67 - Environment Configuration
33
# ====================================================
44

55
# config.js - Main configuration with:

app/src/Server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ dev dependencies: {
6464
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
6565
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
6666
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
67-
* @version 2.0.66
67+
* @version 2.0.67
6868
*
6969
*/
7070

app/src/config.template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* ==============================================
5-
* MiroTalk SFU v2.0.66 - Configuration File
5+
* MiroTalk SFU v2.0.67 - Configuration File
66
* ==============================================
77
*
88
* This file contains all configurable settings for the MiroTalk SFU application.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mirotalksfu",
3-
"version": "2.0.66",
3+
"version": "2.0.67",
44
"description": "WebRTC SFU browser-based video calls",
55
"main": "Server.js",
66
"scripts": {

public/css/VideoGrid.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,10 @@
392392
width: var(--vmi-wh);
393393
height: var(--vmi-wh);
394394
border-radius: 50%;
395-
/* center */
396-
top: 0;
397-
left: 0;
398-
right: 0;
399-
bottom: 0;
400-
margin: auto;
395+
/* reliable centering - works in all scenarios */
396+
top: 50% !important;
397+
left: 50% !important;
398+
transform: translate(-50%, -50%) !important;
401399
transition: box-shadow 0.3s ease;
402400
}
403401

public/js/Brand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ let BRAND = {
8080
},
8181
about: {
8282
imageUrl: '../images/mirotalk-logo.gif',
83-
title: '<strong>WebRTC SFU v2.0.66</strong>',
83+
title: '<strong>WebRTC SFU v2.0.67</strong>',
8484
html: `
8585
<button
8686
id="support-button"

public/js/Room.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
1111
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
1212
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
1313
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
14-
* @version 2.0.66
14+
* @version 2.0.67
1515
*
1616
*/
1717

@@ -6498,7 +6498,7 @@ function showAbout() {
64986498
position: 'center',
64996499
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
65006500
customClass: { image: 'img-about' },
6501-
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v2.0.66',
6501+
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v2.0.67',
65026502
html: `
65036503
<br />
65046504
<div id="about">

public/js/RoomClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
1010
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
1111
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
12-
* @version 2.0.66
12+
* @version 2.0.67
1313
*
1414
*/
1515

public/js/VideoGrid.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ function resizeVideoMedia() {
8585

8686
max = best - Margin * 2;
8787
setWidth(Cameras, max, bigWidth, Margin, Height, isOneVideoElement);
88-
document.documentElement.style.setProperty('--vmi-wh', max / 3 + 'px');
88+
89+
// When alone, use fixed avatar size; otherwise proportional to tile
90+
const avatarSize = isOneVideoElement ? Math.min(200, Math.max(120, Height * 0.25)) : max / 3;
91+
document.documentElement.style.setProperty('--vmi-wh', avatarSize + 'px');
8992
}
9093

9194
function resetZoom() {

0 commit comments

Comments
 (0)