aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-15 17:50:57 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-15 17:50:57 +0200
commitf7deb6e32bb486d7ec9613ba60d5d553157d767f (patch)
tree8e35029c60586adce9e32476732d4b108cbe54d4
parentb26921ed1413ac9633ba280e69e5dc7c0172bc88 (diff)
downloadcgit-f7deb6e32bb486d7ec9613ba60d5d553157d767f.tar.gz
cgit-f7deb6e32bb486d7ec9613ba60d5d553157d767f.tar.bz2
cgit-f7deb6e32bb486d7ec9613ba60d5d553157d767f.zip
fix: Adapt viewport size on mobile devices
-rw-r--r--ui-shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index c8fc780..9ee2e5b 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -818,6 +818,7 @@ void cgit_print_docstart(void)
html("<title>");
html_txt(ctx.page.title);
html("</title>\n");
+ html(" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">");
htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version);
if (ctx.cfg.robots && *ctx.cfg.robots)
htmlf("<meta name='robots' content='%s'/>\n", ctx.cfg.robots);