Skip to content

Commit cd5c78f

Browse files
committed
edited styling
1 parent 6e8cabc commit cd5c78f

File tree

1 file changed

+63
-10
lines changed

1 file changed

+63
-10
lines changed

lib/src/components/VideoCall.tsx

Lines changed: 63 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -403,23 +403,42 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
403403

404404
<div
405405
className=''
406-
style={{display: 'flex', justifyContent: 'space-around', flexDirection:'column', padding:'10px', marginTop: '10%'} }
406+
style={{
407+
display: 'flex',
408+
flexDirection:'column',
409+
justifyContent: 'space-around',
410+
marginTop: '10%',
411+
padding:'10px',
412+
} }
407413
>
408414

409415
{
410416
username === '' ?
411417
<>
412418
<div
413419
className='input-div'
414-
style={{display: 'flex', flexDirection:'column', top: '2%', left: '2%', margin: '0 auto', height: '100px', width: '100px', justifyContent: 'center', alignItems: 'center'}}
420+
style={{
421+
alignItems: 'center',
422+
display: 'flex',
423+
flexDirection:'column',
424+
height: '100px',
425+
justifyContent: 'center',
426+
left: '2%',
427+
margin: '0 auto',
428+
top: '2%',
429+
width: '100px'
430+
}}
415431
>
416432
<input
417433
className=''
418434
type='text'
419435
placeholder='username'
420436
id="username-field"
421437
onChange={(e) => userField = e.target.value}
422-
style={{paddingBottom:'40px', width:'200px'}}
438+
style={{
439+
paddingBottom:'40px',
440+
width:'200px'
441+
}}
423442
></input>
424443

425444
<button
@@ -446,13 +465,24 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
446465
<div
447466
id="main-video-container"
448467
className=''
449-
style= {{display: 'flex', flexDirection: 'row', gap: '100px', justifyContent:'center', alignItems:'center'}}
468+
style= {{
469+
alignItems:'center',
470+
display: 'flex',
471+
flexDirection: 'row',
472+
gap: '100px',
473+
justifyContent:'center'
474+
}}
450475
>
451476

452477
<div
453478
id="local-video-container"
454479
className=''
455-
style={{display:'flex', flexDirection:'column', alignContent: 'center', justifyContent: 'center' }}
480+
style={{
481+
alignContent: 'center',
482+
display:'flex',
483+
flexDirection:'column',
484+
justifyContent: 'center'
485+
}}
456486
>
457487

458488
<VideoComponent
@@ -463,7 +493,13 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
463493
<div
464494
id="local-button-container"
465495
className=''
466-
style= {{display: 'flex', flexDirection: 'row', gap: '10px', justifyContent:'center', marginTop:'10px'}}
496+
style= {{
497+
display: 'flex',
498+
flexDirection: 'row',
499+
gap: '10px',
500+
justifyContent:'center',
501+
marginTop:'10px'
502+
}}
467503
>
468504

469505
<button
@@ -479,7 +515,11 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
479515
className='end-btn'
480516
data-testid='end-call-btn'
481517
onClick={() => endCall(false)}
482-
style={{ ...buttonStyling, backgroundColor:'#ff6961', color:'#28282B' }}
518+
style={{
519+
...buttonStyling,
520+
backgroundColor:'#ff6961',
521+
color:'#28282B'
522+
}}
483523
>
484524
End Call
485525
</button>
@@ -490,7 +530,12 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
490530
<div
491531
id="remote-video-container"
492532
className=''
493-
style={{display:'flex', flexDirection:'column', alignContent: 'center', justifyContent: 'center' }}
533+
style={{
534+
alignContent: 'center',
535+
display:'flex',
536+
flexDirection:'column',
537+
justifyContent: 'center'
538+
}}
494539
>
495540
<VideoComponent
496541
video={remoteVideo}
@@ -500,7 +545,13 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
500545
<div
501546
id="remote-button-container"
502547
className=''
503-
style= {{display: 'flex', flexDirection: 'row', gap: '10px', justifyContent:'center', marginTop:'10px'}}
548+
style= {{
549+
display: 'flex',
550+
flexDirection: 'row',
551+
gap: '10px',
552+
justifyContent:'center',
553+
marginTop:'10px'
554+
}}
504555
>
505556

506557
<button
@@ -516,7 +567,9 @@ const VideoCall = ({ URL, mediaOptions }: { URL: string, mediaOptions: { control
516567
className=''
517568
type='text'
518569
id='receiverName'
519-
style={{marginLeft:'2%'}}></input>
570+
style={{
571+
marginLeft:'2%'
572+
}}></input>
520573

521574
</div>
522575
</div>

0 commit comments

Comments
 (0)