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