Skip to content
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

Fix unstretched preview background wrapper #7173

Merged

Conversation

autarc
Copy link
Contributor

@autarc autarc commented Jun 22, 2019

Pull Request

Currently the styled Background component which wraps the iframe with previews doesn't stretch completely. It takes the height of the viewport even if the content might be larger. While this is normally not an issue it can cause an unexpected behavior if the backgrounds and the viewport addon are used together. This PR changes the CSS attribute from height to min-height to cover cases like this as well.

Current (height: 100%) After change (min-height: 100%)
Screenshot 2019-06-22 at 13 36 10 Screenshot 2019-06-22 at 13 36 26

@vercel
Copy link

vercel bot commented Jun 22, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-fork-autarc-fix-stretch-preview-background-wrapper.storybook.now.sh

@shilman shilman added addon: viewport bug ui patch:yes Bugfix & documentation PR that need to be picked to main branch labels Jun 22, 2019
@shilman shilman added this to the 5.1.x milestone Jun 22, 2019
@ndelangen ndelangen merged commit e4f60bf into storybookjs:next Jun 23, 2019
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jul 31, 2019
shilman pushed a commit that referenced this pull request Jul 31, 2019
Fix unstretched preview background wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addon: viewport bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants