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: overflowing story content overlaps sidebar #627

Merged
merged 4 commits into from
Oct 25, 2024

Conversation

tlow92
Copy link
Contributor

@tlow92 tlow92 commented Oct 22, 2024

Issue:
If the content of a story overflows the container it might overlap with the sidebar, preventing interactions with it.
image

What I did

Set overflow: hidden to the content container.

image

For demonsteration purpose I changed the Button styles, but it's not part of the PR. @dannyhw Let me know if I should add an example story to demonstrate this.

@tlow92 tlow92 requested a review from dannyhw as a code owner October 22, 2024 20:37
@dannyhw
Copy link
Member

dannyhw commented Oct 22, 2024

hey @tlow92 thanks for the contribution 🙏

can you add an example to the example project which can show the problem/fix to make sure there is no regression

@dannyhw
Copy link
Member

dannyhw commented Oct 25, 2024

I noticed theres actually a similar issue on mobile, pushed a similar change for that layout

Copy link
Member

@dannyhw dannyhw left a comment

Choose a reason for hiding this comment

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

Looks great, thanks 👍

@dannyhw dannyhw merged commit 1287053 into storybookjs:next Oct 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants