git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 1/5] gitweb: add viewport meta tag for mobile devices

From
Rito Rhymes via GitGitGadget <gitgitgadget@gmail.com>
Date
Feb 16, 2026, 15:53 UTC
Message-ID
<ff85e97ceedd206f723061ced972b7b7ba431b56.1771257211.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.2043.v2.git.1771257211.gitgitgadget@gmail.com>
From: Rito Rhymes <rito@ritovision.com>

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>
---
 gitweb/gitweb.perl | 1 +
 1 file changed, 1 insertion(+)
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
-- 
gitgitgadget
Previous: Rito via GitGitGadgetNext: Rito Rhymes via GitGitGadget
Message 10 of 17 in “gitweb: fix broken mobile layouts across views”
  1. 0/5 gitweb: fix broken mobile layouts across viewsRito via GitGitGadget, Feb 9, 2026
  2. 1/5 gitweb: add viewport meta tag for mobile devicesRito Rhymes via GitGitGadget, Feb 9, 2026
  3. 2/5 gitweb: prevent project search bar from overflowing on mobileRito Rhymes via GitGitGadget, Feb 9, 2026
  4. 3/5 gitweb: fix mobile page overflow across log/commit/blob/diff viewsRito Rhymes via GitGitGadget, Feb 9, 2026
  5. Eric SunshineFeb 15, 2026
  6. Matthew PelleritoFeb 17, 2026
  7. 4/5 gitweb: fix mobile footer overflow by wrapping text and clearing floatsRito Rhymes via GitGitGadget, Feb 9, 2026
  8. 5/5 gitweb: let page header grow on mobile for long wrapped project namesRito Rhymes via GitGitGadget, Feb 9, 2026
  9. 0/5 gitweb: fix broken mobile layouts across viewsRito via GitGitGadget, Feb 16, 2026
  10. 1/5 gitweb: add viewport meta tag for mobile devicesRito Rhymes via GitGitGadget, Feb 16, 2026
  11. 2/5 gitweb: prevent project search bar from overflowing on mobileRito Rhymes via GitGitGadget, Feb 16, 2026
  12. 3/5 gitweb: fix mobile page overflow across log/commit/blob/diff viewsRito Rhymes via GitGitGadget, Feb 16, 2026
  13. 4/5 gitweb: fix mobile footer overflow by wrapping text and clearing floatsRito Rhymes via GitGitGadget, Feb 16, 2026
  14. 5/5 gitweb: let page header grow on mobile for long wrapped project namesRito Rhymes via GitGitGadget, Feb 16, 2026
  15. Junio C HamanoFeb 20, 2026
  16. Rito RhymesFeb 21, 2026
  17. Eric SunshineFeb 22, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.