Add `viewport` meta tag to improve Swagger UI on mobile devices (#14777)

This commit is contained in:
Joab 2026-02-04 10:35:58 -03:00 committed by GitHub
parent 9656e925a9
commit 741f77d571
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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>