Do not hide the main div on XS screen

Instead, reduce the previews size (up to 4 previews in a row), and place the main div just under, using all the available width
Not perfect yet, but much better than before, so fix #73
master
Daniel Berteaud 11 years ago
parent cc106a6691
commit 64fdb9bf33
  1. 7
      public/css/vroom.css
  2. 2
      public/js/vroom.js
  3. 6
      templates/default/join.html.ep

@ -39,9 +39,16 @@
margin-bottom: 5px; margin-bottom: 5px;
display: none; display: none;
} }
@media screen and (min-width: 768px) {
.previewContainer:nth-child(2n+1){ .previewContainer:nth-child(2n+1){
clear: left; clear: left;
} }
}
@media screen and (max-width: 767px) {
.previewContainer:nth-child(4n+1){
clear: left;
}
}
.volumeBar { .volumeBar {
position: absolute; position: absolute;
width: 5px; width: 5px;

@ -513,7 +513,7 @@ function initVroom(room) {
playSound('join.mp3'); playSound('join.mp3');
// The div continer of this new video // The div continer of this new video
// will contain the video preview plus all other info like displayName, overlay and volume bar // will contain the video preview plus all other info like displayName, overlay and volume bar
var div = $('<div></div>').addClass('col-xs-6 col-sm-12 col-lg-6 previewContainer').append(video).appendTo('#webRTCVideo'); var div = $('<div></div>').addClass('col-xs-3 col-sm-12 col-lg-6 previewContainer').append(video).appendTo('#webRTCVideo');
var id; var id;
// Peer isn't defined ? it's our own local screen // Peer isn't defined ? it's our own local screen
if (!peer){ if (!peer){

@ -36,7 +36,7 @@
</button> </button>
</div> </div>
<% if ($etherpad eq 'true'){ %> <% if ($etherpad eq 'true'){ %>
<div class="btn-group hidden-xs" data-toggle="buttons"> <div class="btn-group" data-toggle="buttons">
<label class="btn btn-default help" id="etherpadLabel" data-toggle="tooltip" data-placement="bottom" title="<%=l 'OPEN_ETHERPAD' %>"> <label class="btn btn-default help" id="etherpadLabel" data-toggle="tooltip" data-placement="bottom" title="<%=l 'OPEN_ETHERPAD' %>">
<input type = "checkbox" id="etherpadButton"> <input type = "checkbox" id="etherpadButton">
<span class="glyphicon glyphicon-pencil"> <span class="glyphicon glyphicon-pencil">
@ -869,7 +869,7 @@
<audio id="mohPlayer" src="<%= $self->get_url('/') %>snd/moh/<%= $moh %>" loop></audio> <audio id="mohPlayer" src="<%= $self->get_url('/') %>snd/moh/<%= $moh %>" loop></audio>
<div id="view" class="view row-fluid"> <div id="view" class="view row-fluid">
<div id="webRTCVideo" class="col-xs-12 col-sm-4"> <div id="webRTCVideo" class="col-xs-12 col-sm-4">
<div class="col-xs-6 col-sm-12 col-lg-6 previewContainer" id="videoLocalContainer"> <div class="col-xs-3 col-sm-12 col-lg-6 previewContainer" id="videoLocalContainer">
<video id="webRTCVideoLocal" class="webRTCVideo latencyUnknown" muted oncontextmenu="return false;"> <video id="webRTCVideoLocal" class="webRTCVideo latencyUnknown" muted oncontextmenu="return false;">
</video> </video>
<div id="localVolume" class="volumeBar"> <div id="localVolume" class="volumeBar">
@ -878,7 +878,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="mainView" class="col-sm-8 hidden-xs"> <div id="mainView" class="col-xs-12 col-sm-8">
<% if ($etherpad eq 'true'){ %> <% if ($etherpad eq 'true'){ %>
<div id="etherpadContainer"></div> <div id="etherpadContainer"></div>
<% } %> <% } %>

Loading…
Cancel
Save