Skip to content

Commit

Permalink
Good place to branch and release
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Feb 20, 2020
1 parent 4bce1a0 commit 40027f8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
import { addParameters } from '@storybook/react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
console.log(INITIAL_VIEWPORTS)

const newViewports = {
landscape: {
name: '800x600',
styles: {
width: '800px',
height: '600px',
},
},
};

addParameters({
viewport: {
viewports: INITIAL_VIEWPORTS,
defaultViewport: 'iphone8p',
viewports: {
...INITIAL_VIEWPORTS,
...newViewports,
},
defaultViewport: 'landscape',
},
});

0 comments on commit 40027f8

Please sign in to comment.