swagger-ui
swagger-ui copied to clipboard
Response code and description columns are not aligned
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:
- Go to any swagger page
- Click on any endpoint that is anotated with responses
- See misalignment
Expected behavior
Alignment of code and description
Screenshots
as above
Additional context or thoughts
n/a
@lonix1 I wonder if you found a solution for this?
@j-andrespuk No, sorry. It's a css bug in the library.
I have opened a PR to fix this, since it was just 2 lines of missing CSS causing the issue.