mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-05 20:01:44 -05:00
✨ Add viewport meta tag to improve Swagger UI on mobile devices (#14777)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user