Skip to content

Commit 26e1f64

Browse files
authored
Update clock.css
canvas is stretched to fit
1 parent 5a905cb commit 26e1f64

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clock/clock.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ html, body {
88
}
99

1010
#canvasContainer {
11+
width: 100%;
12+
height: 100%;
1113
display: flex;
1214
justify-content: center;
1315
align-items: center;
14-
width: 100%;
15-
height: 100%;
1616
}
1717

1818
canvas {
19+
width: 100%;
20+
height: 100%;
1921
display: block;
22+
object-fit: contain;
2023
}

0 commit comments

Comments
 (0)