mirror of https://github.com/tiangolo/fastapi.git
✨ Add `viewport` meta tag to improve Swagger UI on mobile devices (#14777)
This commit is contained in:
parent
9656e925a9
commit
741f77d571
|
|
@ -139,6 +139,7 @@ def get_swagger_ui_html(
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link type="text/css" rel="stylesheet" href="{swagger_css_url}">
|
||||
<link rel="shortcut icon" href="{swagger_favicon_url}">
|
||||
<title>{title}</title>
|
||||
|
|
|
|||
Loading…
Reference in New Issue