diff options
| author | Rito Rhymes <rito@ritovision.com> | 2026-02-16 15:53:27 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-17 11:49:12 -0800 |
| commit | 18e71bbda1e4e8418a590a3a9490ccdaec7deba0 (patch) | |
| tree | 830bc919b431a6ae65122a833a7db8733f76087d /gitweb | |
| parent | 67ad42147a7acc2af6074753ebd03d904476118f (diff) | |
| download | git-18e71bbda1e4e8418a590a3a9490ccdaec7deba0.tar.gz git-18e71bbda1e4e8418a590a3a9490ccdaec7deba0.zip | |
gitweb: add viewport meta tag for mobile devices
Without a viewport meta tag, phone browsers render gitweb at desktop
width and scale the whole page down to fit the screen.
Add a viewport meta tag so the layout viewport tracks device width.
This is the baseline needed for mobile CSS fixes in follow-up commits.
Signed-off-by: Rito Rhymes <rito@ritovision.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb')
| -rwxr-xr-x | gitweb/gitweb.perl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index b5490dfecf..fde804593b 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4214,6 +4214,7 @@ sub git_header_html { <head> <meta name="generator" content="gitweb/$version git/$git_version$mod_perl_version"/> <meta name="robots" content="index, nofollow"/> +<meta name="viewport" content="width=device-width, initial-scale=1"/> <title>$title</title> EOF # the stylesheet, favicon etc urls won't work correctly with path_info |
