Skip to content

Commit

Permalink
Fix actual canvas element not maintaining aspect ratio (#244)
Browse files Browse the repository at this point in the history
* Fix actual canvas element not maintaining aspect ratio

* Bump version v0.1.6 -> v0.1.7
  • Loading branch information
ning-y authored and remo5000 committed Jul 30, 2018
1 parent d065108 commit 285143c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "cadet-frontend",
"version": "0.1.6",
"version": "0.1.7",
"scripts-info": {
"format": "Format source code",
"start": "Start the Webpack development server",
Expand Down
1 change: 1 addition & 0 deletions src/styles/_game.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
width: 100%;

canvas {
margin: auto;
height: 100%;
object-fit: contain;
}
Expand Down

0 comments on commit 285143c

Please sign in to comment.