Replies: 3 comments
-
This is an issue with the swagger UI, which is not maintained by FastAPI. You can open an issue about this here: https://github.com/swagger-api/swagger-ui |
Beta Was this translation helpful? Give feedback.
0 replies
-
Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the help @dmontagu ! 🙇♂️ 🍰 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When adding in-line code in markdown using `code` notation (backticks), the blocks are rendered with
padding: 5px 7px;
, which is too large and overlaps on consecutive lines.The default CSS is imported from:
swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css"
as per:
fastapi/openapi/docs.py
Suggestion to update the stylesheet link?
To Reproduce
Steps to reproduce the behavior with a minimum self-contained file:
/docs
.Expected behavior
Code blocks should not overlap. This can be fixed with smaller padding or higher line spacing. This can be done using a custom stylesheet but it would be nice if the default rendered without issues like these.
Screenshots
Imgur screenshot
Environment
FastAPI version 0.45.0
Python 3.6.9
Beta Was this translation helpful? Give feedback.
All reactions