浏览代码

Small fixes

master
Roderic Day 5 年前
父节点
当前提交
5e59d7bb22
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      pico.css
  2. +2
    -2
      pico.js

+ 1
- 1
pico.css 查看文件

height: 200px; height: 200px;
} }
.video-container { .video-container {
background-color: lightsteelblue;
display: inline-block; display: inline-block;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
display: block; display: block;
} }
.video-container video { .video-container video {
background-color: lightsteelblue;
object-fit: cover; object-fit: cover;
height: 100%; height: 100%;
width: 100%; width: 100%;

+ 2
- 2
pico.js 查看文件

}, },
view({attrs}) { view({attrs}) {
if(!State.options[attrs.username]) { 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 options = State.options[attrs.username]
const classList = [...options].join(' ') 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)}, return m('.video-container', {class: classList, oncreate: ({dom}) => Video.keepRatio.observe(dom)},
m('details.video-meta', m('details.video-meta',
m('summary', m('summary',

正在加载...
取消
保存