-
-
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
Center the story within the iFrame ? #55
Comments
I get it. But, the component run inside a pure isolated environment where we don't inject any code. So, we shoudn't inject anystuff to change it. That's how I view about this. Thanks for the request. |
@antoinerey You could create a simple component to center the content, something like this:
Then just do:
|
Yep. That's what I did too. That's why I proposed this idea to be included
|
I like the idea, this would be great to have! It should be an optional solution though. |
@antoinerey You can use decorator. |
Fix bug where proptables are disabled
Do you consider centering the story inside the iFrame ? I currently work on a 27-inch screen and my Button component is pretty much lost in all this space :D
One solution could be to simply center the story on the screen. And of course, let the story scroll if it overflows the viewport.
The text was updated successfully, but these errors were encountered: