Skip to content

Commit 4dadfcf

Browse files
committed
Make canvas full screen
1 parent d691b3f commit 4dadfcf

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

client/src/App.css

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11

22
#root {
3-
max-width: 1280px;
4-
margin: 0 auto;
5-
padding: 2rem;
6-
height: 70vh;
7-
width: 100vh;
8-
/* text-align: center; */
3+
height: 100vh;
4+
width: 100vw;
95
}
106

117
#sidebar * {
@@ -71,9 +67,8 @@
7167

7268
.canvas {
7369
height: 100%;
74-
width: 100%;
75-
border: 0px solid black;
76-
box-shadow: 0 0 4px #000;
70+
width: 86vw;
71+
background-color: rgb(212, 212, 13);
7772
}
7873

7974

client/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function App() {
4646
startX = e.clientX - canvas.getBoundingClientRect().left;
4747
startY = e.clientY - canvas.getBoundingClientRect().top;
4848
}
49-
function handleMouseup(e) {
49+
function handleMouseup() {
5050
isDrawing = false;
5151
startX = 0;
5252
startY = 0;

0 commit comments

Comments
 (0)