add meta viewport for scaling on mobile
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 15 Nov 2020 20:11:46 +0000 (21:11 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 15 Nov 2020 20:16:24 +0000 (21:16 +0100)
Patch by Augustin Fabre <augustin@augfab.fr>

stagit.c

index 13f5705f1248e4c9cf07945558663dbfdc52af24..12a76a4b0aa29a168a65a37d4728d87db8290305 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -449,6 +449,7 @@ writeheader(FILE *fp, const char *title)
        fputs("<!DOCTYPE html>\n"
                "<html>\n<head>\n"
                "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"
+               "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n"
                "<title>", fp);
        xmlencode(fp, title, strlen(title));
        if (title[0] && strippedname[0])