File tree Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -390,26 +390,28 @@ const Canvas = (props: {}): JSX.Element => {
390
390
) }
391
391
< label className = "switch" >
392
392
{ userList . length > 1 && (
393
- < button
393
+ < Button
394
394
className = "btn-toggle"
395
395
onClick = { multipleClicks }
396
396
style = { {
397
397
position : 'fixed' ,
398
- width : 'max-content' ,
399
- height : 'max-content' ,
400
- bottom : '100px' ,
401
- left : '51vw' ,
398
+ width : '100px' ,
399
+ height : '35px' ,
400
+ bottom : '200px' ,
401
+ right : '45vw' ,
402
+ padding : '5px' ,
402
403
textAlign : 'center' ,
403
- color : '#FFFFFF ' ,
404
+ color : '#ffffff ' ,
404
405
backgroundColor : '#151515' ,
405
406
zIndex : 0 ,
406
- padding : '5px' ,
407
- borderColor : '#354e9c' ,
408
- borderRadius : '5px'
407
+ border : '2px solid #354e9c' ,
408
+ whiteSpace : 'nowrap' ,
409
+ cursor : 'pointer' ,
410
+ textTransform : 'none'
409
411
} }
410
412
>
411
413
{ toggleText === 'on' ? 'View Cursors' : 'Hide Cursors' }
412
- </ button >
414
+ </ Button >
413
415
) }
414
416
</ label >
415
417
</ div >
Original file line number Diff line number Diff line change @@ -28,28 +28,33 @@ function CanvasContainer(props): JSX.Element {
28
28
29
29
const codePreviewStyle : React . CSSProperties = {
30
30
position : 'fixed' ,
31
- width : 'max-content ' ,
32
- height : 'max-content ' ,
31
+ width : '100px ' ,
32
+ height : '35px ' ,
33
33
bottom : '150px' ,
34
34
right : '45vw' ,
35
+ padding : '5px' ,
35
36
textAlign : 'center' ,
36
37
color : '#ffffff' ,
37
38
backgroundColor : '#151515' ,
38
39
zIndex : 0 ,
39
- border : '2px solid #354e9c'
40
+ border : '2px solid #354e9c' ,
41
+ whiteSpace : 'nowrap' ,
42
+ textTransform : 'none'
40
43
} as const ;
41
44
42
45
const backToTop : React . CSSProperties = {
43
46
position : 'fixed' ,
44
- width : 'max-content ' ,
45
- height : 'max-content ' ,
47
+ width : '100px ' ,
48
+ height : '35px ' ,
46
49
bottom : '100px' ,
47
50
right : '45vw' ,
48
51
textAlign : 'center' ,
49
52
color : '#ffffff' ,
50
53
backgroundColor : '#151515' ,
51
54
zIndex : 0 ,
52
- border : '2px solid #354e9c'
55
+ border : '2px solid #354e9c' ,
56
+ whiteSpace : 'nowrap' ,
57
+ textTransform : 'none' ,
53
58
} as const ;
54
59
55
60
//containerRef references the container that will ultimately have the scroll functionality
You can’t perform that action at this time.
0 commit comments