Browse Source

Add visibility option

master
Roderic Day 5 years ago
parent
commit
aa54f09ae4
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      pico.css
  2. +1
    -1
      pico.js

+ 3
- 0
pico.css View File

height: 100%; height: 100%;
width: 100%; width: 100%;
} }
.video-container:not(.visible) {
display: none;
}
.video-container:not(.square) { .video-container:not(.square) {
width: unset !important; width: unset !important;
overflow: scroll; overflow: scroll;

+ 1
- 1
pico.js View File

} }
} }
const VideoOptions = { const VideoOptions = {
available: ['mirror', 'square'],
available: ['visible', 'mirror', 'square'],
getFor: (username) => { getFor: (username) => {
if(!State.options[username]) { if(!State.options[username]) {
State.options[username] = new Set(VideoOptions.available) State.options[username] = new Set(VideoOptions.available)

Loading…
Cancel
Save