diff options
author | = <pux@pux.dom> | 2020-11-18 15:44:35 +0100 |
---|---|---|
committer | = <pux@pux.dom> | 2020-11-18 15:44:35 +0100 |
commit | 67c62f927e75bc767c5de04f98bd11bcd91cf9b2 (patch) | |
tree | b1b8458feef2cb9a79c579fcd77271a0debf1444 | |
parent | 7935fe3c645f4e40c6d656a3b969b895f44bc859 (diff) | |
parent | e01d0e6bb176a4d7daab1e44dc497ce7f579d0e9 (diff) | |
download | mo-cgit-mods-67c62f927e75bc767c5de04f98bd11bcd91cf9b2.tar.gz mo-cgit-mods-67c62f927e75bc767c5de04f98bd11bcd91cf9b2.tar.bz2 mo-cgit-mods-67c62f927e75bc767c5de04f98bd11bcd91cf9b2.zip |
Merge branch 'master' of /srv/git/mo-cgit-mods
-rw-r--r-- | 2020-01-19-200043_cgitModMobileBrowsers.md | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/2020-01-19-200043_cgitModMobileBrowsers.md b/2020-01-19-200043_cgitModMobileBrowsers.md new file mode 100644 index 0000000..6825b7a --- /dev/null +++ b/2020-01-19-200043_cgitModMobileBrowsers.md @@ -0,0 +1,52 @@ +--- +Tags: cgit git nginx android chrome opera firefox +Language: english +--- + +# 2020-01-19-200043_cgitModMobileBrowsers + +## cgit Modifitcation + +### Info + +Because on Android, cgit sucks. Way too small. Does not render fine in either Chrome, Firefox or Opera... + +Edit in source and in .css + +### HowTo + +$ git clone https://git.zx2c4.com/cgit + +Edit ui-shared.c + +``` + html("<link rel='stylesheet' type='text/css' href='"); + html_attr(ctx.cfg.css); + html("'/>\n"); + html("<meta name='viewport' content='width=device-width, initial-scale=1> + if (ctx.cfg.favicon) { +``` + +See the viewport-line! Add it! + +``` +$ git submodule init +$ git submodule update +$ make +``` + +Replace cgit.cgi with the one from distribution installation. (Arch: /usr/lib/cgit/cgit.cgi) + +``` +# cp /home/pux/src/cgit/cgit /usr/lib/cgit/cgit.cgi +``` + +Refresh on Android device to see difference. + +Edit (Arch: /usr/share/webapps/cgit/)cgit.css: + +In ```div#cgit {``` set ```font-size``` to ```zoom``` + +``` + font-size: zoom; +``` |