swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.48k stars 8.96k forks source link

On applying reflow resolution all content present under the Schema section is not visible it is getting truncated and two scroll bars are appearing for it. #10076

Open msftedad opened 3 months ago

msftedad commented 3 months ago

Q&A (please complete the following information)

Content & configuration

Example Swagger/OpenAPI definition:

# your YAML here

Swagger-UI configuration options:

SwaggerUI({
  // your config options here
})
?yourQueryStringConfig

Describe the bug you're encountering

On applying reflow resolution all content present under the Schema section is not visible it is getting truncated and two scroll bars are appearing for it.

To reproduce...

Steps to reproduce the behavior:

  1. Launch the URL : https://codesandbox.io/p/sandbox/nervous-fog-d87m3w?file=%2fpackage.json
  2. TAB till "Schema " section.
  3. Tab till "Pet" and press enter.
  4. Observe that On applying reflow resolution all content present under the Schema section is not visible it is getting truncated and two scroll bars are appearing for it or not.

Expected behavior

On applying reflow resolution all content present under the Schema section is should be visible it is should not get truncated and two scroll bars or Horizontal Scroll bar should not be appear for it.

Screenshots

https://github.com/swagger-api/swagger-ui/assets/93735775/3c23f46d-40d4-4abc-8d57-4db24827e397

Additional context or thoughts

msftedad commented 2 months ago

Hi @maggiewachs, Is there any update on this bug, and could you please provide a tentative ETA for fixing it?

maggiewachs commented 2 months ago

See my comment here: https://github.com/swagger-api/swagger-ui/issues/8172#issuecomment-2286601376