-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set addon-viewport viewport default value #2395
Comments
This will probably require a PR to set something in the cookies or browser local storage. Feel free to contribute if you'd like to see this feature somewhere. |
Do you think it would it be possible to export a configuration function setting default values, like e.g. |
Actually it would be great to set this per-story. So if I have a story I am trying to show that is intended just for mobile and looks terrible on desktop. Have a decorator option to set it. |
Any news on that? It would be really useful if one could pass a config to set the default viewport by default. |
There is an ongoing PR - #3099. |
I agree, it'd be great to have those features, so I'll take it and address the following:
I think with option 1, we don't need to use cookie/local-storage, as it will be set for the entire website/stories @zhipenglin @danielduan What do you think folks? P.S. it'll be a separate PR though @igor-dv , and it might needs some adjustments on #3099 |
Just a quick update, I've implemented the above functionality (see #3099), in case you want to see how it is implemented. Feedbacks are always welcomed! |
Released as |
This plugin is very good , but I can not set a default value for its viewport so that it remembers the previously selected value the next time it opens
The text was updated successfully, but these errors were encountered: