diff --git a/public/css/vroom.css b/public/css/vroom.css index 6f4207d..82f69dc 100644 --- a/public/css/vroom.css +++ b/public/css/vroom.css @@ -39,8 +39,15 @@ margin-bottom: 5px; display: none; } -.previewContainer:nth-child(2n+1){ - clear: left; +@media screen and (min-width: 768px) { + .previewContainer:nth-child(2n+1){ + clear: left; + } +} +@media screen and (max-width: 767px) { + .previewContainer:nth-child(4n+1){ + clear: left; + } } .volumeBar { position: absolute; diff --git a/public/js/vroom.js b/public/js/vroom.js index e618491..5832972 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -513,7 +513,7 @@ function initVroom(room) { playSound('join.mp3'); // The div continer of this new video // will contain the video preview plus all other info like displayName, overlay and volume bar - var div = $('
').addClass('col-xs-6 col-sm-12 col-lg-6 previewContainer').append(video).appendTo('#webRTCVideo'); + var div = $('').addClass('col-xs-3 col-sm-12 col-lg-6 previewContainer').append(video).appendTo('#webRTCVideo'); var id; // Peer isn't defined ? it's our own local screen if (!peer){ diff --git a/templates/default/join.html.ep b/templates/default/join.html.ep index 73c1511..442e22a 100644 --- a/templates/default/join.html.ep +++ b/templates/default/join.html.ep @@ -36,7 +36,7 @@ <% if ($etherpad eq 'true'){ %> -