From 2755210972258d42e3c68bbcf4d267caf6461d21 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 22 Feb 2025 21:46:12 +0100 Subject: [PATCH] [mirotalksfu] - Improve settings UI on small desktop screen --- app/src/Server.js | 2 +- package.json | 2 +- public/css/Room.css | 13 ++++++++++--- public/js/Brand.js | 2 +- public/js/Room.js | 4 ++-- public/js/RoomClient.js | 2 +- 6 files changed, 16 insertions(+), 9 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index 467773c5..c9becf6f 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -58,7 +58,7 @@ dev dependencies: { * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.7.55 + * @version 1.7.56 * */ diff --git a/package.json b/package.json index 90a082a0..c605e881 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.7.55", + "version": "1.7.56", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { diff --git a/public/css/Room.css b/public/css/Room.css index 93c74ba7..3624d6c8 100644 --- a/public/css/Room.css +++ b/public/css/Room.css @@ -470,7 +470,6 @@ body { #mySettings { z-index: 6; position: absolute; - margin: auto; padding: 10px; width: 50%; min-height: 480px; @@ -480,21 +479,26 @@ body { border-radius: 10px; overflow-y: auto; overflow-x: hidden; + max-height: 90vh; /* Prevents overflow */ } .mySettingsMain { display: flex; } +/* Medium screens */ @media screen and (max-width: 1030px) { #mySettings { width: 75%; } } +/* Smaller screens */ @media screen and (max-width: 830px) { #mySettings { - width: 80%; + width: 100%; + height: 100%; + max-height: 100vh; min-height: auto; } .mySettingsMain { @@ -502,9 +506,12 @@ body { } } +/* Fullscreen on mobile */ @media screen and (max-width: 500px) { #mySettings { - width: 90%; + width: 100%; + height: 100%; + max-height: 100vh; } } diff --git a/public/js/Brand.js b/public/js/Brand.js index d5a0de67..d911a31f 100644 --- a/public/js/Brand.js +++ b/public/js/Brand.js @@ -64,7 +64,7 @@ let BRAND = { }, about: { imageUrl: '../images/mirotalk-logo.gif', - title: 'WebRTC SFU v1.7.55', + title: 'WebRTC SFU v1.7.56', html: `