瀏覽代碼

Show labels again

master
Roderic Day 4 年之前
父節點
當前提交
8c2bb0edfa
共有 2 個文件被更改,包括 2 次插入5 次删除
  1. +2
    -2
      apps/video.js
  2. +0
    -3
      pico.html

+ 2
- 2
apps/video.js 查看文件

height: '100%', height: '100%',
width: '100%', width: '100%',
fontFamily: 'monospace', fontFamily: 'monospace',
fontSize: 'xxx-large',
fontSize: 'x-large',
} }
const styleVideo = { const styleVideo = {
objectFit: Settings.get('blackBars') ? 'contain' : 'cover', objectFit: Settings.get('blackBars') ? 'contain' : 'cover',
} }
return m('.video-container', {style: styleOuter}, return m('.video-container', {style: styleOuter},
m('.video-info', {style: styleMeta}, m('.video-info', {style: styleMeta},
m('.username', username),
m(`.label-${username}`, username),
), ),
m('video[playsinline][autoplay]', { m('video[playsinline][autoplay]', {
style: styleVideo, style: styleVideo,

+ 0
- 3
pico.html 查看文件

justify-items: start; justify-items: start;
margin-right: auto; margin-right: auto;
} }
video {
background-color: black;
}
main { main {
overflow: hidden; overflow: hidden;
display: grid; display: grid;

Loading…
取消
儲存