Storybook 6.0: viewport not being set on initial load
See original GitHub issueDescribe the bug Viewport is not set on. the story on initial load:
To Reproduce Steps to reproduce the behavior:
- Go to link
- see the viewport not being set
Expected behavior I expect viewport addon to set proper viewport
Screenshots
Code snippets
viewport: {
viewports: {
mobile: {
name: 'Mobile',
styles: {
width: '360px',
height: '640px',
},
type: 'mobile',
},
},
defaultViewport: 'mobile',
},
System:
Please paste the results of npx -p @storybook/cli@next sb info
here.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Viewport - Storybook - JS.ORG
Watch a video tutorial on the Storybook channel. The Viewport toolbar item allows you to adjust the dimensions of the iframe your story...
Read more >Storybook's viewport-addon not showing ... - Stack Overflow
Please try to configure a default viewPort and then, for e.g. from Storybook ref.. // MyComponent.stories.js | MyComponent.stories.ts | ...
Read more >@storybook/addon-viewport | Yarn - Package Manager
Storybook Viewport Addon allows your stories to be displayed in different sizes and layouts in Storybook. This helps build responsive components inside of ......
Read more >Configuring Storybook: 6 Tips You Can't Miss | by Zheng Li
How to configure your Storybook to be integrated with a current project ... addons by default, including Docs, Controls, Actions, Viewport, ...
Read more >Generic Storybook stories with different viewports
You may enjoy the default set up and manually change the viewport settings when developing or checking documentation of the components.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.24 containing PR #11627 that references this issue. Upgrade today to the
@next
NPM tag to try it out!Closing this issue. Please re-open if you think there’s still more to do.
yeah, should be good