Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Swagger-ui issue with container class? #2984

Closed
jaydreyer opened this issue Apr 27, 2017 · 3 comments
Closed

Swagger-ui issue with container class? #2984

jaydreyer opened this issue Apr 27, 2017 · 3 comments

Comments

@jaydreyer
Copy link

Hi all,

Using the latest 3.0.7 version of swagger-ui.

I'm trying to integrate it into our developer portal, which is built using angular 1.3 and bootstrap. When the doc ui loads it looks fine but the resource/paths section blows out to the right. If I go through dev-tools in chrome and remove the "container" class from the line <section data-reactroot class="swagger-ui container"> it looks fine. If I don't, it extends way out to the right and doesn't give a horizontal scrollbar.

I'm assuming that this is because bootstrap doesn't like nested containers. We use a container for every page layout, and then adding in swagger-ui is adding another container. I'm not 100% sure this is the cause, and I'm really not sure how to get around it.

Any suggestions?

@shockey
Copy link
Contributor

shockey commented Apr 27, 2017

We aren't using bootstrap on our end, so this just sounds like a CSS class collision.

@Minasokoni, can you advise on how difficult it would be to change our container class to something like swagger-container?

@Minasokoni
Copy link
Contributor

@shockey Should be really quick let me make a PR.

@jaydreyer
Copy link
Author

@Minasokoni's change worked perfectly. Thank you @shockey and @Minasokoni !

@lock lock bot locked and limited conversation to collaborators Jul 3, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

4 participants