Skip to content

Commit fce83d2

Browse files
committed
fixed button styles on canvas
1 parent 9be9fe8 commit fce83d2

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

app/src/components/main/Canvas.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -390,26 +390,28 @@ const Canvas = (props: {}): JSX.Element => {
390390
)}
391391
<label className="switch">
392392
{userList.length > 1 && (
393-
<button
393+
<Button
394394
className="btn-toggle"
395395
onClick={multipleClicks}
396396
style={{
397397
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',
402403
textAlign: 'center',
403-
color: '#FFFFFF',
404+
color: '#ffffff',
404405
backgroundColor: '#151515',
405406
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'
409411
}}
410412
>
411413
{toggleText === 'on' ? 'View Cursors' : 'Hide Cursors'}
412-
</button>
414+
</Button>
413415
)}
414416
</label>
415417
</div>

app/src/components/main/CanvasContainer.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,33 @@ function CanvasContainer(props): JSX.Element {
2828

2929
const codePreviewStyle: React.CSSProperties = {
3030
position: 'fixed',
31-
width: 'max-content',
32-
height: 'max-content',
31+
width: '100px',
32+
height: '35px',
3333
bottom: '150px',
3434
right: '45vw',
35+
padding: '5px',
3536
textAlign: 'center',
3637
color: '#ffffff',
3738
backgroundColor: '#151515',
3839
zIndex: 0,
39-
border: '2px solid #354e9c'
40+
border: '2px solid #354e9c',
41+
whiteSpace: 'nowrap',
42+
textTransform: 'none'
4043
} as const;
4144

4245
const backToTop: React.CSSProperties = {
4346
position: 'fixed',
44-
width: 'max-content',
45-
height: 'max-content',
47+
width: '100px',
48+
height: '35px',
4649
bottom: '100px',
4750
right: '45vw',
4851
textAlign: 'center',
4952
color: '#ffffff',
5053
backgroundColor: '#151515',
5154
zIndex: 0,
52-
border: '2px solid #354e9c'
55+
border: '2px solid #354e9c',
56+
whiteSpace: 'nowrap',
57+
textTransform: 'none',
5358
} as const;
5459

5560
//containerRef references the container that will ultimately have the scroll functionality

0 commit comments

Comments
 (0)