From fb5e5938af4012ad629fc2fdf52140245410118d Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Fri, 24 Nov 2023 09:37:49 +0100 Subject: [PATCH] [mirotalksfu] - fix typo --- app/src/Server.js | 8 ++++---- public/css/GroupChat.css | 7 +++---- public/css/Room.css | 1 + public/js/RoomClient.js | 16 +++++++++------- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index eff2807f..15041fe9 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -494,11 +494,11 @@ function startServer() { const tunnel = pu0.startsWith('https') ? pu0 : pu1; log.info('Listening on', { node_version: process.versions.node, + hostConfig: hostCfg, + presenters: config.presenters, announced_ip: announcedIP, server: host, server_tunnel: tunnel, - hostConfig: hostCfg, - presenters: config.presenters, api_docs: api_docs, mediasoup_worker_bin: mediasoup.workerBin, mediasoup_server_version: mediasoup.version, @@ -540,11 +540,11 @@ function startServer() { } log.info('Settings', { node_version: process.versions.node, + hostConfig: hostCfg, + presenters: config.presenters, announced_ip: announcedIP, server: host, api_docs: api_docs, - hostConfig: hostCfg, - presenters: config.presenters, mediasoup_worker_bin: mediasoup.workerBin, mediasoup_server_version: mediasoup.version, mediasoup_client_version: mediasoupClient.version, diff --git a/public/css/GroupChat.css b/public/css/GroupChat.css index bf9645b6..0333d686 100644 --- a/public/css/GroupChat.css +++ b/public/css/GroupChat.css @@ -106,7 +106,7 @@ /* Chat app people list container */ .chat-app .chat-list { - height: 550px; + height: auto; /* border: 1px solid lime; */ } @@ -170,10 +170,9 @@ /* Chat history */ .chat .chat-history { padding: 20px; - min-height: 500px; - max-height: 500px; + min-height: 490px; + max-height: 490px; border-bottom: var(--border); - overflow-x: auto; /* border: 1px solid lime; */ } diff --git a/public/css/Room.css b/public/css/Room.css index 8534f506..e6a8c8ed 100644 --- a/public/css/Room.css +++ b/public/css/Room.css @@ -84,6 +84,7 @@ html, body { top: 0 !important; + margin: 0 !important; width: 100%; height: 100%; overflow: hidden; diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 585be1da..800f1c81 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -2991,15 +2991,15 @@ class RoomClient { chat.style.marginLeft = isParticipantsListHidden ? 0 : '300px'; chat.style.borderLeft = isParticipantsListHidden ? 'none' : '1px solid rgb(255 255 255 / 32%)'; if (this.isChatPinned) chat.style.display = isParticipantsListHidden ? 'block' : 'none'; - chatHistory.style.height = isParticipantsListHidden ? 'calc(100vh - 220px)' : '500px'; + chatHistory.style.height = isParticipantsListHidden ? 'calc(100vh - 210px)' : '490px'; this.toggleChatHistorySize(isParticipantsListHidden && (this.isChatPinned || this.isChatMaximized)); plist.style.width = this.isChatPinned || this.isMobileDevice ? '100%' : '300px'; } toggleChatHistorySize(max = true) { const chatHistory = this.getId('chatHistory'); - chatHistory.style.minHeight = max ? 'calc(100vh - 220px)' : '500px'; - chatHistory.style.maxHeight = max ? 'calc(100vh - 220px)' : '500px'; + chatHistory.style.minHeight = max ? 'calc(100vh - 210px)' : '490px'; + chatHistory.style.maxHeight = max ? 'calc(100vh - 210px)' : '490px'; } toggleChatPin() { @@ -3373,9 +3373,11 @@ class RoomClient { chatHistory.scrollTop += 500; - this.setTippy('msg-delete-' + chatMessagesId, 'Delete', 'top'); - this.setTippy('msg-copy-' + chatMessagesId, 'Copy', 'top'); - this.setTippy('msg-speech-' + chatMessagesId, 'Speech', 'top'); + if (!this.isMobileDevice) { + this.setTippy('msg-delete-' + chatMessagesId, 'Delete', 'top'); + this.setTippy('msg-copy-' + chatMessagesId, 'Copy', 'top'); + this.setTippy('msg-speech-' + chatMessagesId, 'Speech', 'top'); + } chatMessagesId++; } @@ -5440,7 +5442,7 @@ class RoomClient { break; } - setTippy('chatShowParticipantsList', 'Toggle participants list', 'bottom'); + if (!this.isMobileDevice) setTippy('chatShowParticipantsList', 'Toggle participants list', 'bottom'); const clickedElement = event ? event.target : null; if (!event || (clickedElement.tagName != 'BUTTON' && clickedElement.tagName != 'I')) {