소스 검색

grid -> flex

master
Roderic Day 4 년 전
부모
커밋
8e49804ee3
2개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. +7
    -2
      pico.html
  2. +4
    -1
      pico.js

+ 7
- 2
pico.html 파일 보기

@@ -41,8 +41,13 @@ header {
}
main {
overflow: hidden;
display: grid;
grid-auto-flow: column;
display: flex;
}
.videos {
flex: 1;
}
.screen-share {
flex: 10;
}
</style>
<body>PicoChat requires JS</body>

+ 4
- 1
pico.js 파일 보기

@@ -185,6 +185,9 @@ const Base = {
autocomplete: 'off',
value: localStorage.username,
}
const style = {
flexDirection: innerWidth > innerHeight ? 'row' : 'column',
}
return [
m('header',
State.isConnected
@@ -197,7 +200,7 @@ const Base = {
),
],
),
m('main',
m('main', {style},
State.isConnected
? Apps.map(a => m(...a))
: [

Loading…
취소
저장