diff --git a/.storybook/preview.js b/.storybook/preview.js index ad89c02..d1853dc 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -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', }, }); \ No newline at end of file