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 = () => {
1818export default ClientView ;
1919
2020const ClientViewContainer = styled . main `
21- padding: 0 24px;
21+ flex: 1;
22+ overflow-y: auto;
23+ padding: 0 60px;
2224 background-color: ${ ( { theme } ) => theme . tokenColors [ 'surface-default' ] } ;
25+ scrollbar-width: none;
2326` ;
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ const Header = () => {
77export default Header ;
88
99const HeaderContainer = styled . div `
10- display: flex ;
10+ width: 100% ;
1111 height: 60px;
12- padding: 0 60px;
12+ position: fixed;
13+ display: flex;
1314 background-color: ${ ( { theme } ) => theme . tokenColors [ 'surface-default' ] } ;
15+ z-index: 11000;
1416` ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import CustomPlayIcon from '@assets/custom_play_icon.svg';
77import PauseIcon from '@assets/icons/pause_icon.svg' ;
88import PlayIcon from '@assets/icons/play_icon.svg' ;
99
10- const Player = ( { videoUrl } : { videoUrl : string ; } ) => {
10+ const Player = ( { videoUrl } : { videoUrl : string } ) => {
1111 const [ onHLSReady , setOnHLSReady ] = useState ( false ) ;
1212 const [ isPaused , setIsPaused ] = useState ( false ) ;
1313 const [ showIcon , setShowIcon ] = useState ( false ) ;
Original file line number Diff line number Diff line change @@ -9,8 +9,11 @@ export default function Header() {
99}
1010
1111const Container = styled . header `
12+ width: 100%;
13+ height: 60px;
14+ position: fixed;
1215 background-color: #222222;
13- padding: 10px 20px;
1416 color: #fff;
1517 font-weight: bold;
18+ z-index: 11000;
1619` ;
Original file line number Diff line number Diff line change @@ -18,5 +18,6 @@ export default function Setting() {
1818}
1919
2020const Container = styled . main `
21- flex: 7;
21+ flex: 1;
22+ overflow-y: auto;
2223` ;
Original file line number Diff line number Diff line change 1717# root {
1818 height : 100% ;
1919 margin : 0 ;
20+ background-color : # 141517 ;
2021}
2122
2223body {
Original file line number Diff line number Diff line change 11import styled from 'styled-components' ;
22
3- import { Chat , ClientView , Header } from '@components/client' ;
3+ import { ClientView , Header } from '@components/client' ;
4+ import { ChatRoom } from '@components/chat' ;
45
56export default function ClientPage ( ) {
67 return (
78 < >
89 < Header />
910 < ClientContainer >
1011 < ClientView />
11- < Chat />
12+ < ChatRoom />
1213 </ ClientContainer >
1314 </ >
1415 ) ;
1516}
1617
1718const ClientContainer = styled . div `
19+ box-sizing: border-box;
20+ padding: 60px 10px 0 10px;
21+ height: 100%;
1822 display: flex;
19- justify-content: center;
20- background-color: ${ ( { theme } ) => theme . tokenColors [ 'surface-default' ] } ;
23+ background-color: ${ ( { theme } ) => theme . tokenColors [ 'susrface-default' ] } ;
2124` ;
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' ;
23import styled from 'styled-components' ;
34
45export default function HostPage ( ) {
@@ -7,12 +8,15 @@ export default function HostPage() {
78 < Header />
89 < FlexContainer >
910 < Setting />
10- < Chat />
11+ < ChatRoom />
1112 </ FlexContainer >
1213 </ >
1314 ) ;
1415}
1516
1617const FlexContainer = styled . div `
18+ box-sizing: border-box;
19+ height: 100%;
1720 display: flex;
21+ padding-top: 60px;
1822` ;
You can’t perform that action at this time.
0 commit comments