-
Notifications
You must be signed in to change notification settings - Fork 238
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
[Bug] Fix double scrollbars #504
Conversation
Size Change: -81 B (0%) Total Size: 6.28 MB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit ebe2488): https://docusaurus-openapi-36b86--pr504-zc3wnf16.web.app (expires Wed, 19 Apr 2023 15:29:34 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this so quickly and sorry it slipped by in my first PR. This fixes the scrollbar issue on my machine.
However, on large responses, there's no max-height anymore, so the response block grows to fit the content. Send an API request on this page:
https://docusaurus-openapi-36b86--pr504-zc3wnf16.web.app/petstore_versioned/find-pets-by-status/ with ?status=available
I think it should match the behaviour of the language code blocks:
This is done by on the pre
tag, parent of the code
element:
Also, you should now be able to remove my changes from #417, since this should also fix the language code blocks. Of course, best to double check 😅 |
@Woozl, ok, I think all the appropriate changes are in. We'll need to adapt/port these changes over to v2.0.0 once merged. Let me know if everything looks good to you. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Working perfectly for me.
Description
See #496 for background. Essentially, this change removes redundant styles that are the likely cause of the "double scrollbars" reported by users.
Motivation and Context
Only one set of x/y scrollbars should be visible. Having more than one set is a poor UI/UX.