Skip to content

Commit

Permalink
fix: Improve handling of editor size on small screens (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto authored Feb 6, 2020
1 parent 1477830 commit fb68977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Playroom/Playroom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default ({ components, themes, widths, snippets }: PlayroomProps) => {
})}
defaultSize={sizeStyles}
size={sizeStyles}
minWidth={MIN_WIDTH}
minWidth={isVerticalEditor ? MIN_WIDTH : undefined}
minHeight={MIN_HEIGHT}
onResize={(_event, _direction, { offsetWidth, offsetHeight }) => {
updateEditorSize({ isVerticalEditor, offsetWidth, offsetHeight });
Expand Down
2 changes: 1 addition & 1 deletion src/Playroom/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
@toolbar-closed-size: 60px;
@toolbar-open-size: 300px;
@toolbar-item-size: 60px;
@toolbar-max-item-count: 4;
@toolbar-max-item-count: 5;
@toolbar-foregound: @gray-4;
@toolbar-background: @white;
@toolbar-highlight: @highlight;
Expand Down

0 comments on commit fb68977

Please sign in to comment.