diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx
index c2cd1a10..9ee6c794 100644
--- a/client/modules/IDE/pages/IDEView.jsx
+++ b/client/modules/IDE/pages/IDEView.jsx
@@ -369,41 +369,43 @@ class IDEView extends React.Component {
-
{ this.overlay = element; }}>
+
+
{ this.overlay = element; }}>
+
+
+ {(
+ (
+ (this.props.preferences.textOutput ||
+ this.props.preferences.gridOutput ||
+ this.props.preferences.soundOutput
+ ) &&
+ this.props.ide.isPlaying
+ ) ||
+ this.props.ide.isAccessibleOutputPlaying
+ )
+ }
+
+
-
- {(
- (
- (this.props.preferences.textOutput ||
- this.props.preferences.gridOutput ||
- this.props.preferences.soundOutput
- ) &&
- this.props.ide.isPlaying
- ) ||
- this.props.ide.isAccessibleOutputPlaying
- )
- }
-
-
diff --git a/client/modules/IDE/reducers/files.js b/client/modules/IDE/reducers/files.js
index 3315ffd8..567db40a 100644
--- a/client/modules/IDE/reducers/files.js
+++ b/client/modules/IDE/reducers/files.js
@@ -31,6 +31,9 @@ const defaultCSS =
margin: 0;
padding: 0;
}
+canvas {
+ display: block;
+}
`;
const initialState = () => {
diff --git a/client/styles/components/_preview-frame.scss b/client/styles/components/_preview-frame.scss
index 8c356972..0b7e6610 100644
--- a/client/styles/components/_preview-frame.scss
+++ b/client/styles/components/_preview-frame.scss
@@ -5,6 +5,11 @@
border-width: 0;
}
+.preview-frame-holder {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+}
.preview-frame-overlay {
height: 100%;
@@ -37,3 +42,8 @@
font-size: #{12 / $base-font-size}rem;
font-weight: normal;
}
+
+.preview-frame__content {
+ position: relative;
+ flex: 1 1 0;
+}
\ No newline at end of file
diff --git a/server/scripts/examples.js b/server/scripts/examples.js
index 05f3e6d8..fc5ae1a2 100644
--- a/server/scripts/examples.js
+++ b/server/scripts/examples.js
@@ -28,6 +28,9 @@ const defaultCSS =
margin: 0;
padding: 0;
}
+canvas {
+ display: block;
+}
`;
const clientId = process.env.GITHUB_ID;