Skip to content

Commit

Permalink
Merge pull request #99 from helgasoft/gh-pages
Browse files Browse the repository at this point in the history
keep examples canvas centered inside container
  • Loading branch information
plainheart authored Oct 28, 2024
2 parents bfefde8 + 73aa638 commit c97bae5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/editor/sandbox/srcdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
position: relative;
height: 100vh;
overflow: hidden;
/* keep content centered on resize: */
display:flex;
justify-content:center;
align-items:center;
}
.ec-debug-dirty-rect {
background-color: rgba(255, 0, 0, 0.2) !important;
Expand Down

0 comments on commit c97bae5

Please sign in to comment.