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

use modal #21

Open
alikazemkhanloo opened this issue Aug 20, 2021 · 1 comment
Open

use modal #21

alikazemkhanloo opened this issue Aug 20, 2021 · 1 comment

Comments

@alikazemkhanloo
Copy link

Hi,
I think it is better to have a modal to have a full-width swagger box. and scrolling wouldn't affect document's scroll position.

When trying an API, normally, the rest of the page is useless.

@wll8
Copy link
Owner

wll8 commented Aug 26, 2021

At present, the latest code can hide some elements that are repeated with redoc in swagger, but it does not support interface testing in the pop-up window. Maybe it would be better to have more space for testing, but how to design is a problem.

.swaggerBox:not(.onlySwagger) .swagger-ui .opblock .opblock-section-header,
.swaggerBox:not(.onlySwagger) .btn.cancel,
.swaggerBox:not(.onlySwagger) .try-out,
.swaggerBox:not(.onlySwagger) .responses-inner>div>h4,
.swaggerBox:not(.onlySwagger) :not(.live-responses-table).responses-table,
.swaggerBox:not(.onlySwagger) .opblock-body > .opblock-description-wrapper,
.swaggerBox:not(.onlySwagger) .swagger-ui .opblock-summary * {
  display: none;
}

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

No branches or pull requests

2 participants