Skip to content

Commit 24fa5c0

Browse files
committed
Editor: fix preview area centering for both canvas and iframe
1 parent 68059bc commit 24fa5c0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

editor/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
background: #111;
7070
overflow: hidden;
7171
position: relative;
72+
display: flex;
73+
align-items: center;
74+
justify-content: center;
7275
}
7376
#preview-area canvas { display: block !important; }
7477
#preview-area iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block; }

0 commit comments

Comments
 (0)