Skip to content

Commit 0512799

Browse files
author
Ives van Hoorne
committed
Default browser size based on window size
1 parent d3e2f18 commit 0512799

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Content/Preview

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Content/Preview/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type State = {
1919

2020
class Preview extends React.Component<Props, State> {
2121
state = {
22-
aligned: 'right',
22+
aligned: window.innerHeight > window.innerWidth ? 'bottom' : 'right',
2323
};
2424

2525
onPreviewInitialized = preview => {

0 commit comments

Comments
 (0)