Skip to content

Commit

Permalink
handling resize
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronkruse committed Jan 11, 2024
1 parent 25981ba commit 4b8405e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,12 @@ figure p {
bottom: 0px;
}

#emojiCanvas {
width: 100%;
height: 100%;
/* additional styles */
}

@media only screen and (max-width: 767px) {
#dynamic-frame,
#static-frame,
Expand Down Expand Up @@ -748,9 +754,3 @@ figure p {
margin: 0rem;
}
}

#emojiCanvas {
width: 100%;
height: 100%;
/* additional styles */
}
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function init() {
// progress: true,
})
.onStepEnter(handleStepEnter);
window.addEventListener("resize", handleResize);
}

function figureUpdate(stepNumber) {
Expand Down

0 comments on commit 4b8405e

Please sign in to comment.