Selaa lähdekoodia

Small fixes

master
Roderic Day 5 vuotta sitten
vanhempi
commit
5e59d7bb22
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. +1
    -1
      pico.css
  2. +2
    -2
      pico.js

+ 1
- 1
pico.css Näytä tiedosto

@@ -61,6 +61,7 @@ body {
height: 200px;
}
.video-container {
background-color: lightsteelblue;
display: inline-block;
position: relative;
overflow: hidden;
@@ -73,7 +74,6 @@ body {
display: block;
}
.video-container video {
background-color: lightsteelblue;
object-fit: cover;
height: 100%;
width: 100%;

+ 2
- 2
pico.js Näytä tiedosto

@@ -206,12 +206,12 @@ const Video = {
},
view({attrs}) {
if(!State.options[attrs.username]) {
State.options[attrs.username] = new Set(['mirror', 'square'])
State.options[attrs.username] = new Set(VideoOptions.available)
}
const options = State.options[attrs.username]
const classList = [...options].join(' ')

const rpc = State.rpcs[attrs.username] || {iceConnectionState: m.trust(' ')}
const rpc = State.rpcs[attrs.username] || {iceConnectionState: null}
return m('.video-container', {class: classList, oncreate: ({dom}) => Video.keepRatio.observe(dom)},
m('details.video-meta',
m('summary',

Loading…
Peruuta
Tallenna