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

Response code and description columns are not aligned #7850

Closed
lonix1 opened this issue Feb 19, 2022 · 3 comments · Fixed by #8963
Closed

Response code and description columns are not aligned #7850

lonix1 opened this issue Feb 19, 2022 · 3 comments · Fixed by #8963

Comments

@lonix1
Copy link

lonix1 commented Feb 19, 2022

Q&A (please complete the following information)

  • OS: linux
  • Browser: firefox
  • Version: 96 (latest)
  • Method of installation: asp.net core + swashbuckle 6.2.2 (latest)
  • Swagger-UI version: 3.52.1

Content & configuration

Example Swagger/OpenAPI definition:
n/a

Swagger-UI configuration options:
n/a

Describe the bug you're encountering

As you can see in the image, the response code and description are not aligned.

That is because the description has a <p> tag with margin-top.

To reproduce...

Steps to reproduce the behavior:

  1. Go to any swagger page
  2. Click on any endpoint that is anotated with responses
  3. See misalignment

Expected behavior

Alignment of code and description

Screenshots

as above

Additional context or thoughts

n/a

@j-andrespuk
Copy link

@lonix1 I wonder if you found a solution for this?

@lonix1
Copy link
Author

lonix1 commented Aug 8, 2022

@j-andrespuk No, sorry. It's a css bug in the library.

@smzelek
Copy link
Contributor

smzelek commented Jun 26, 2023

I have opened a PR to fix this, since it was just 2 lines of missing CSS causing the issue.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants