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 initial bottom panel size #6822

Merged
merged 4 commits into from
May 21, 2019

Conversation

mortal94
Copy link
Contributor

Issue:
The initial bottom panel size on small screens was too big

What I did

Changed the initial value of the bottom panel size to be dynamic to the screen.

@vercel
Copy link

vercel bot commented May 19, 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-mortal94-fix-initial-panel-size.storybook.now.sh

@mortal94 mortal94 changed the title Fix initial panel size Fix initial bottom panel size May 19, 2019
@@ -282,7 +282,7 @@ class Layout extends Component {
resizerPanel:
resizerPanel ||
(options.panelPosition === 'bottom'
? { x: 0, y: bounds.height - 400 }
? { x: 0, y: bounds.height * 0.6 }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to round this to a whole number, to not get inconsistencies

@ndelangen
Copy link
Member

Thanks @mortal94 this is great, one small remark, then good to merge IMHO

@mortal94
Copy link
Contributor Author

Thanks @mortal94 this is great, one small remark, then good to merge IMHO

Thanks @ndelangen ! i've pushed the requested changes.
Will this fix be released in v5.1-beta.2?

@ndelangen ndelangen added this to the 5.1.0 milestone May 19, 2019
@shilman
Copy link
Member

shilman commented May 19, 2019

@mortal94 yes this will be released in beta.2 after it gets merged

@ndelangen ndelangen self-assigned this May 20, 2019
@ndelangen ndelangen merged commit c317801 into storybookjs:next May 21, 2019
@mortal94 mortal94 deleted the fix-initial-panel-size branch May 21, 2019 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants