Skip to content
Permalink
Browse files

fix: Improve handling of editor size on small screens (#122)

  • Loading branch information
michaeltaranto committed Feb 6, 2020
1 parent 1477830 commit fb68977bbb9856456db90cad63634b6ad001494b
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Playroom/Playroom.tsx
  2. +1 −1 src/Playroom/variables.less
@@ -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 });
@@ -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;

0 comments on commit fb68977

Please sign in to comment.
You can’t perform that action at this time.