Browse Source

docs: add viewport meta tag to Swagger UI HTML

pull/14777/head
Joab 6 months ago
parent
commit
e2afc41f57
  1. 1
      fastapi/openapi/docs.py

1
fastapi/openapi/docs.py

@ -118,6 +118,7 @@ def get_swagger_ui_html(
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" rel="stylesheet" href="{swagger_css_url}"> <link type="text/css" rel="stylesheet" href="{swagger_css_url}">
<link rel="shortcut icon" href="{swagger_favicon_url}"> <link rel="shortcut icon" href="{swagger_favicon_url}">
<title>{title}</title> <title>{title}</title>

Loading…
Cancel
Save