From: Rito Rhymes Date: Mon, 16 Feb 2026 15:53:27 +0000 (+0000) Subject: gitweb: add viewport meta tag for mobile devices X-Git-Tag: v2.54.0-rc0~123^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18e71bbda1e4e8418a590a3a9490ccdaec7deba0;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- 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 { + $title EOF # the stylesheet, favicon etc urls won't work correctly with path_info