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

[Bug] Fix double scrollbars #504

Merged
merged 4 commits into from
Mar 20, 2023
Merged

[Bug] Fix double scrollbars #504

merged 4 commits into from
Mar 20, 2023

Conversation

sserrata
Copy link
Member

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.

@sserrata sserrata added the bug Something isn't working label Mar 16, 2023
@github-actions
Copy link

github-actions bot commented Mar 16, 2023

Size Change: -81 B (0%)

Total Size: 6.28 MB

Filename Size Change
demo/build/assets/css/styles.********.css 110 kB -91 B (0%)
ℹ️ View Unchanged
Filename Size Change
demo/.docusaurus/globalData.json 19.2 kB 0 B
demo/build/assets/js/006e727e.********.js 15.3 kB 0 B
demo/build/assets/js/05f64ae1.********.js 2.81 kB 0 B
demo/build/assets/js/06b64fc1.********.js 575 B 0 B
demo/build/assets/js/06e5f0f0.********.js 27.4 kB 0 B
demo/build/assets/js/081bfb0d.********.js 10.1 kB 0 B
demo/build/assets/js/09e07b87.********.js 2.97 kB 0 B
demo/build/assets/js/0d832478.********.js 28.7 kB 0 B
demo/build/assets/js/12693653.********.js 28.2 kB 0 B
demo/build/assets/js/14eb3368.********.js 9.26 kB 0 B
demo/build/assets/js/1639936b.********.js 5.29 kB 0 B
demo/build/assets/js/16577668.********.js 387 B 0 B
demo/build/assets/js/177e86db.********.js 11.9 kB 0 B
demo/build/assets/js/19d75775.********.js 9.87 kB 0 B
demo/build/assets/js/1a4e3797.********.js 77.6 kB 0 B
demo/build/assets/js/1a8cc2a6.********.js 13.2 kB 0 B
demo/build/assets/js/1be78505.********.js 10.6 kB 0 B
demo/build/assets/js/1c54f54e.********.js 10.9 kB 0 B
demo/build/assets/js/1e6c5cae.********.js 38 kB 0 B
demo/build/assets/js/1e6ff21d.********.js 12 kB 0 B
demo/build/assets/js/1f818248.********.js 12.2 kB 0 B
demo/build/assets/js/2bb7a9e5.********.js 21.5 kB 0 B
demo/build/assets/js/2c860537.********.js 7.33 kB 0 B
demo/build/assets/js/3136173c.********.js 361 B 0 B
demo/build/assets/js/326c3861.********.js 11.2 kB 0 B
demo/build/assets/js/3720c009.********.js 1.44 kB 0 B
demo/build/assets/js/3893.********.js 1.07 kB 0 B
demo/build/assets/js/3946f914.********.js 36.7 kB 0 B
demo/build/assets/js/39d00f16.********.js 13.3 kB 0 B
demo/build/assets/js/3e0d14e9.********.js 25.1 kB 0 B
demo/build/assets/js/40a238b6.********.js 28.2 kB 0 B
demo/build/assets/js/41cd56a1.********.js 11.3 kB 0 B
demo/build/assets/js/423cd203.********.js 14.3 kB 0 B
demo/build/assets/js/4261.********.js 463 B 0 B
demo/build/assets/js/466ac800.********.js 46.3 kB 0 B
demo/build/assets/js/4670.********.js 104 B 0 B
demo/build/assets/js/46afcded.********.js 8.21 kB 0 B
demo/build/assets/js/46e5c6ac.********.js 6.86 kB 0 B
demo/build/assets/js/47abaca6.********.js 2.88 kB 0 B
demo/build/assets/js/4935.********.js 1.05 kB 0 B
demo/build/assets/js/4964e910.********.js 26.3 kB 0 B
demo/build/assets/js/49bd3d39.********.js 17.9 kB 0 B
demo/build/assets/js/4b891ed6.********.js 12.5 kB 0 B
demo/build/assets/js/4b901b1a.********.js 350 B 0 B
demo/build/assets/js/4c5e977b.********.js 43.6 kB +10 B (0%)
demo/build/assets/js/55960ee5.********.js 383 B 0 B
demo/build/assets/js/55a6d13f.********.js 15.3 kB 0 B
demo/build/assets/js/56717cba.********.js 2.97 kB 0 B
demo/build/assets/js/57f1a671.********.js 12.5 kB 0 B
demo/build/assets/js/58ff8b1e.********.js 20.9 kB 0 B
demo/build/assets/js/597ddc40.********.js 10.6 kB 0 B
demo/build/assets/js/5fb917be.********.js 2.56 kB 0 B
demo/build/assets/js/63fc267d.********.js 11.4 kB 0 B
demo/build/assets/js/66c76a57.********.js 38.2 kB 0 B
demo/build/assets/js/6842.********.js 3.21 MB 0 B
demo/build/assets/js/68b61ac5.********.js 47.6 kB 0 B
demo/build/assets/js/69a61f78.********.js 27 kB 0 B
demo/build/assets/js/6a105426.********.js 354 B 0 B
demo/build/assets/js/73b594ee.********.js 37.9 kB 0 B
demo/build/assets/js/77264a1a.********.js 36.6 kB 0 B
demo/build/assets/js/785615ec.********.js 21.4 kB 0 B
demo/build/assets/js/7ca3ae45.********.js 19 kB 0 B
demo/build/assets/js/7ed7dafe.********.js 28.6 kB 0 B
demo/build/assets/js/8003.********.js 5.45 kB 0 B
demo/build/assets/js/85d3c400.********.js 2.9 kB 0 B
demo/build/assets/js/85ec4403.********.js 4.67 kB 0 B
demo/build/assets/js/86b273b1.********.js 11.7 kB 0 B
demo/build/assets/js/86c346b0.********.js 538 B 0 B
demo/build/assets/js/86c45737.********.js 27.6 kB 0 B
demo/build/assets/js/8777.********.js 76.5 kB 0 B
demo/build/assets/js/881db345.********.js 394 B 0 B
demo/build/assets/js/8961c7a6.********.js 26.8 kB 0 B
demo/build/assets/js/8ab9b16e.********.js 11.1 kB 0 B
demo/build/assets/js/8d4e78cd.********.js 2.83 kB 0 B
demo/build/assets/js/8f36b2a3.********.js 172 B 0 B
demo/build/assets/js/8f441c78.********.js 13.2 kB 0 B
demo/build/assets/js/9127.********.js 104 B 0 B
demo/build/assets/js/91696e06.********.js 38.2 kB 0 B
demo/build/assets/js/93304a97.********.js 5.41 kB 0 B
demo/build/assets/js/935f2afb.********.js 34.1 kB 0 B
demo/build/assets/js/94589c06.********.js 22.2 kB 0 B
demo/build/assets/js/967247e2.********.js 11.8 kB 0 B
demo/build/assets/js/97810f3c.********.js 27.5 kB 0 B
demo/build/assets/js/9b5caaf3.********.js 28.1 kB 0 B
demo/build/assets/js/9c42c0f3.********.js 36.8 kB 0 B
demo/build/assets/js/a40c6d71.********.js 8.77 kB 0 B
demo/build/assets/js/a476e24e.********.js 344 B 0 B
demo/build/assets/js/a5491aaa.********.js 400 B 0 B
demo/build/assets/js/a6cd895f.********.js 21.9 kB 0 B
demo/build/assets/js/a728d93a.********.js 11.1 kB 0 B
demo/build/assets/js/aa2f1ec7.********.js 25.8 kB 0 B
demo/build/assets/js/ab09fd5c.********.js 21.9 kB 0 B
demo/build/assets/js/ab6072f2.********.js 27 kB 0 B
demo/build/assets/js/ae7f40a3.********.js 47.6 kB 0 B
demo/build/assets/js/b4ebd305.********.js 19 kB 0 B
demo/build/assets/js/b5c059ef.********.js 36.8 kB 0 B
demo/build/assets/js/b89b49f4.********.js 6.1 kB 0 B
demo/build/assets/js/bead4b8e.********.js 3.02 kB 0 B
demo/build/assets/js/bf271e74.********.js 401 B 0 B
demo/build/assets/js/c5644638.********.js 337 B 0 B
demo/build/assets/js/c65697f5.********.js 27.5 kB 0 B
demo/build/assets/js/c7a5be9f.********.js 11.3 kB 0 B
demo/build/assets/js/c7ded1cb.********.js 2.95 kB 0 B
demo/build/assets/js/cef3f2e2.********.js 5.8 kB 0 B
demo/build/assets/js/cf07762b.********.js 27.6 kB 0 B
demo/build/assets/js/common.********.js 389 kB 0 B
demo/build/assets/js/d63c7029.********.js 2.92 kB 0 B
demo/build/assets/js/dd696920.********.js 27.5 kB 0 B
demo/build/assets/js/df203c0f.********.js 1.8 kB 0 B
demo/build/assets/js/e015ccf9.********.js 28.1 kB 0 B
demo/build/assets/js/e01f8d18.********.js 9.84 kB 0 B
demo/build/assets/js/e2ce9793.********.js 397 B 0 B
demo/build/assets/js/e5e5340c.********.js 2.48 kB 0 B
demo/build/assets/js/e8b309fb.********.js 577 B 0 B
demo/build/assets/js/eae14b71.********.js 35.5 kB 0 B
demo/build/assets/js/eaf4471e.********.js 13.1 kB 0 B
demo/build/assets/js/ecc39b49.********.js 172 B 0 B
demo/build/assets/js/ee308fa3.********.js 10.3 kB 0 B
demo/build/assets/js/f212caf7.********.js 26.7 kB 0 B
demo/build/assets/js/f4486b6b.********.js 12.1 kB 0 B
demo/build/assets/js/f65290a6.********.js 11.6 kB 0 B
demo/build/assets/js/f8409a7e.********.js 35.4 kB 0 B
demo/build/assets/js/f84e10c2.********.js 20.3 kB 0 B
demo/build/assets/js/fcd67c8d.********.js 20.3 kB 0 B
demo/build/assets/js/fe97f0d1.********.js 22.2 kB 0 B
demo/build/assets/js/main.********.js 475 kB 0 B
demo/build/assets/js/runtime~main.********.js 9.15 kB 0 B
demo/build/index.html 90.4 kB 0 B

compressed-size-action

@github-actions
Copy link

github-actions bot commented Mar 16, 2023

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 🌎

Copy link
Contributor

@Woozl Woozl left a 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:

image

This is done by on the pre tag, parent of the code element:

image

@Woozl
Copy link
Contributor

Woozl commented Mar 16, 2023

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 😅

@sserrata sserrata requested a review from Woozl March 17, 2023 19:40
@sserrata
Copy link
Member Author

@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!

Copy link
Contributor

@Woozl Woozl left a 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.

@sserrata sserrata merged commit 14e3a21 into main Mar 20, 2023
@sserrata sserrata deleted the ui/double-scrollbars branch March 20, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants