File tree Expand file tree Collapse file tree 8 files changed +29
-12
lines changed Expand file tree Collapse file tree 8 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ const ClientView = () => {
18
18
export default ClientView ;
19
19
20
20
const ClientViewContainer = styled . main `
21
- padding: 0 24px;
21
+ flex: 1;
22
+ overflow-y: auto;
23
+ padding: 0 60px;
22
24
background-color: ${ ( { theme } ) => theme . tokenColors [ 'surface-default' ] } ;
25
+ scrollbar-width: none;
23
26
` ;
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ const Header = () => {
7
7
export default Header ;
8
8
9
9
const HeaderContainer = styled . div `
10
- display: flex ;
10
+ width: 100% ;
11
11
height: 60px;
12
- padding: 0 60px;
12
+ position: fixed;
13
+ display: flex;
13
14
background-color: ${ ( { theme } ) => theme . tokenColors [ 'surface-default' ] } ;
15
+ z-index: 11000;
14
16
` ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import CustomPlayIcon from '@assets/custom_play_icon.svg';
7
7
import PauseIcon from '@assets/icons/pause_icon.svg' ;
8
8
import PlayIcon from '@assets/icons/play_icon.svg' ;
9
9
10
- const Player = ( { videoUrl } : { videoUrl : string ; } ) => {
10
+ const Player = ( { videoUrl } : { videoUrl : string } ) => {
11
11
const [ onHLSReady , setOnHLSReady ] = useState ( false ) ;
12
12
const [ isPaused , setIsPaused ] = useState ( false ) ;
13
13
const [ showIcon , setShowIcon ] = useState ( false ) ;
Original file line number Diff line number Diff line change @@ -9,8 +9,11 @@ export default function Header() {
9
9
}
10
10
11
11
const Container = styled . header `
12
+ width: 100%;
13
+ height: 60px;
14
+ position: fixed;
12
15
background-color: #222222;
13
- padding: 10px 20px;
14
16
color: #fff;
15
17
font-weight: bold;
18
+ z-index: 11000;
16
19
` ;
Original file line number Diff line number Diff line change @@ -18,5 +18,6 @@ export default function Setting() {
18
18
}
19
19
20
20
const Container = styled . main `
21
- flex: 7;
21
+ flex: 1;
22
+ overflow-y: auto;
22
23
` ;
Original file line number Diff line number Diff line change 17
17
# root {
18
18
height : 100% ;
19
19
margin : 0 ;
20
+ background-color : # 141517 ;
20
21
}
21
22
22
23
body {
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
3
- import { Chat , ClientView , Header } from '@components/client' ;
3
+ import { ClientView , Header } from '@components/client' ;
4
+ import { ChatRoom } from '@components/chat' ;
4
5
5
6
export default function ClientPage ( ) {
6
7
return (
7
8
< >
8
9
< Header />
9
10
< ClientContainer >
10
11
< ClientView />
11
- < Chat />
12
+ < ChatRoom />
12
13
</ ClientContainer >
13
14
</ >
14
15
) ;
15
16
}
16
17
17
18
const ClientContainer = styled . div `
19
+ box-sizing: border-box;
20
+ padding: 60px 10px 0 10px;
21
+ height: 100%;
18
22
display: flex;
19
- justify-content: center;
20
- background-color: ${ ( { theme } ) => theme . tokenColors [ 'surface-default' ] } ;
23
+ background-color: ${ ( { theme } ) => theme . tokenColors [ 'susrface-default' ] } ;
21
24
` ;
Original file line number Diff line number Diff line change 1
- import { Setting , Chat , Header } from '@components/host' ;
1
+ import { ChatRoom } from '@components/chat' ;
2
+ import { Setting , Header } from '@components/host' ;
2
3
import styled from 'styled-components' ;
3
4
4
5
export default function HostPage ( ) {
@@ -7,12 +8,15 @@ export default function HostPage() {
7
8
< Header />
8
9
< FlexContainer >
9
10
< Setting />
10
- < Chat />
11
+ < ChatRoom />
11
12
</ FlexContainer >
12
13
</ >
13
14
) ;
14
15
}
15
16
16
17
const FlexContainer = styled . div `
18
+ box-sizing: border-box;
19
+ height: 100%;
17
20
display: flex;
21
+ padding-top: 60px;
18
22
` ;
You can’t perform that action at this time.
0 commit comments