Skip to content

Commit 9b312c4

Browse files
committed
dark mode: working on light theme toggle button
1 parent b844037 commit 9b312c4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/components/Canvas/Canvas.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class Canvas extends Component {
1414
const MARGIN = CONSTANTS.margin;
1515
const SCREEN_WIDTH = window.innerWidth;
1616
const BAR_WIDTH = Math.floor((SCREEN_WIDTH - (MARGIN*arrayLength)) / arrayLength);
17-
const CANVAS_HEIGHT = window.innerHeight - CONSTANTS.OFFSET+"px";
17+
const HEIGHT_ADJUSTMENT = 122; // SG 07/11/2022 21:34 this is to make the canvas take up the whole screen height, avoiding height=vw for mobile responsive issues
18+
const CANVAS_HEIGHT = window.innerHeight - CONSTANTS.OFFSET + HEIGHT_ADJUSTMENT +"px";
1819

1920

2021
return (

0 commit comments

Comments
 (0)