File tree Expand file tree Collapse file tree 2 files changed +16
-28
lines changed
styles/scss/prefab-components Expand file tree Collapse file tree 2 files changed +16
-28
lines changed Original file line number Diff line number Diff line change @@ -259,14 +259,11 @@ export const PreJoin = ({
259
259
260
260
return (
261
261
< div className = "lk-prejoin" { ...htmlProps } >
262
- < div className = "lk-video-container" >
263
- { localVideoTrack && < video ref = { videoEl } /> }
264
- { /* {localVideoTrack?.isMuted === true && (
265
- <div className="lk-placeholder">
266
- <ParticipantPlaceholder />
267
- </div>
268
- )} */ }
269
- </ div >
262
+ { localVideoTrack ? (
263
+ < video ref = { videoEl } />
264
+ ) : (
265
+ < div className = "lk-camera-off-note" > Camera is off</ div >
266
+ ) }
270
267
{ localAudioTrack ? (
271
268
< div className = "lk-audio-container" >
272
269
< audio ref = { audioEl } />
@@ -317,7 +314,7 @@ export const PreJoin = ({
317
314
318
315
< form className = "lk-username-container" >
319
316
< input
320
- className = "lk- form-control"
317
+ className = "form-control"
321
318
id = "username"
322
319
name = "username"
323
320
type = "text"
Original file line number Diff line number Diff line change 7
7
margin-inline : auto ;
8
8
background-color : var (--bg );
9
9
10
- .video-container {
10
+ video {
11
+ display : block ;
11
12
width : 480px ;
12
13
max-width : 100% ;
14
+ height : auto ;
15
+ transform : rotateY (180deg );
13
16
border-radius : var (--lk-border-radius );
14
- aspect-ratio : 16 / 10 ;
15
- overflow : hidden ;
16
-
17
- video {
18
- max-height : 100% ;
19
- display : block ;
20
- transform : rotateY (180deg );
21
- object-fit : cover ;
22
- }
17
+ }
23
18
24
- .placeholder {
25
- width : 100% ;
26
- height : 100% ;
27
- display : grid ;
28
- place-content : center ;
29
- svg {
30
- padding : 20% ;
31
- }
32
- }
19
+ .camera-off-note {
20
+ width : 100% ;
21
+ height : 11.25rem ;
22
+ background-color : #000 ;
23
+ border-radius : var (--lk-border-radius );
33
24
}
34
25
35
26
.audio-container {
You can’t perform that action at this time.
0 commit comments