diff options
| author | Alexander Leonhardt <equinox.salexander@gmail.com> | |
|---|---|---|
| 2026-08-15 17:50:57 +0200 | ||
| committer | Alexander Leonhardt <equinox.salexander@gmail.com> | |
| 2026-08-15 17:50:57 +0200 | ||
| commit | f7deb6e32bb486d7ec9613ba60d5d553157d767f (patch) | |
| tree | 8e35029c60586adce9e32476732d4b108cbe54d4 | |
| parent | b26921ed1413ac9633ba280e69e5dc7c0172bc88 (diff) | |
| download | cgit-f7deb6e32bb486d7ec9613ba60d5d553157d767f.tar.gz cgit-f7deb6e32bb486d7ec9613ba60d5d553157d767f.tar.bz2 cgit-f7deb6e32bb486d7ec9613ba60d5d553157d767f.zip | |
fix: Adapt viewport size on mobile devices
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); |