From e5ccc822043af41febed44b9eb8657d3903d1a0e Mon Sep 17 00:00:00 2001 From: Alain Takoudjou Date: Thu, 3 Sep 2020 20:54:27 +0200 Subject: [PATCH] minor fixes --- static/scripts/{toastify-js => toastify.js} | 0 static/sfu.css | 1 + static/sfu.html | 4 ++-- static/sfu.js | 4 ++++ 4 files changed, 7 insertions(+), 2 deletions(-) rename static/scripts/{toastify-js => toastify.js} (100%) diff --git a/static/scripts/toastify-js b/static/scripts/toastify.js similarity index 100% rename from static/scripts/toastify-js rename to static/scripts/toastify.js diff --git a/static/sfu.css b/static/sfu.css index c26ddd9..c058dea 100644 --- a/static/sfu.css +++ b/static/sfu.css @@ -795,6 +795,7 @@ header .colapse { font-size: 1.3rem; font-weight: 900; color: #dbd9d9; + line-height: 44px; } .header-sep { diff --git a/static/sfu.html b/static/sfu.html index d5b78bf..e99aba8 100644 --- a/static/sfu.html +++ b/static/sfu.html @@ -151,7 +151,7 @@ - @@ -169,6 +169,6 @@ - + diff --git a/static/sfu.js b/static/sfu.js index a78bdaf..6020150 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -143,6 +143,7 @@ document.getElementById('presentbutton').onclick = function(e) { document.getElementById('unpresentbutton').onclick = function(e) { e.preventDefault(); delUpMediaKind('local'); + resizePeers(); }; function changePresentation() { @@ -642,6 +643,9 @@ function resizePeers() { Object.keys(serverConnection.down).length; let peers = document.getElementById('peers'); let columns = Math.ceil(Math.sqrt(count)); + if (!count) + // No video, nothing to resize. + return; let rows = ""; let size = 100 / columns; // Peers div has padding 10 on top and bottom, remove 20 on offsetHeight