Skip to content

Commit 285143c

Browse files
ning-yremo5000
authored andcommitted
Fix actual canvas element not maintaining aspect ratio (#244)
* Fix actual canvas element not maintaining aspect ratio * Bump version v0.1.6 -> v0.1.7
1 parent d065108 commit 285143c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "cadet-frontend",
4-
"version": "0.1.6",
4+
"version": "0.1.7",
55
"scripts-info": {
66
"format": "Format source code",
77
"start": "Start the Webpack development server",

src/styles/_game.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
width: 100%;
88

99
canvas {
10+
margin: auto;
1011
height: 100%;
1112
object-fit: contain;
1213
}

0 commit comments

Comments
 (0)