blob: 6825b7a45e1fadc7d6d476be32a5ef77f63a9c6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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;
```
|
in each repos: see "about"-tab (if existing) for more details / README.
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa