From 30a1319298ab1c4051425e57afa3e65b8c3239b3 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Mon, 4 Jan 2021 09:39:58 +1100 Subject: [PATCH] Updated notes to always be square --- src/components/note/Note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/note/Note.js b/src/components/note/Note.js index 43f8c80..95cf485 100644 --- a/src/components/note/Note.js +++ b/src/components/note/Note.js @@ -26,7 +26,7 @@ function Note({ ); const noteWidth = map && (mapWidth / map.grid.size.x) * note.size; - const noteHeight = map && (mapHeight / map.grid.size.y) * note.size; + const noteHeight = noteWidth; const notePadding = noteWidth / 10; function handleDragStart(event) {