Skip to content

Commit 70d3ab3

Browse files
author
Ives van Hoorne
committed
Tweak embedded heights on Medium
1 parent e60a2a0 commit 70d3ab3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/embed/components/Content.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { getModulePath } from 'app/store/entities/sandboxes/modules/selectors';
99
import type { Sandbox, Module, ModuleError } from 'common/types';
1010
import fetchBundle from 'app/store/entities/sandboxes/bundler';
1111

12-
const MIN_HEIGHT = 250;
13-
1412
const Container = styled.div`
1513
display: flex;
1614
position: relative;
@@ -80,7 +78,7 @@ export default class Content extends React.PureComponent {
8078
JSON.stringify({
8179
src: window.location.toString(),
8280
context: 'iframe.resize',
83-
height: Math.max(height + extraOffset, MIN_HEIGHT), // pixels
81+
height: Math.max(height + extraOffset, 150), // pixels
8482
}),
8583
'*',
8684
);
@@ -89,7 +87,7 @@ export default class Content extends React.PureComponent {
8987
JSON.stringify({
9088
src: window.location.toString(),
9189
context: 'iframe.resize',
92-
height: MIN_HEIGHT, // pixels
90+
height: 500, // pixels
9391
}),
9492
'*',
9593
);

0 commit comments

Comments
 (0)