Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Let long hashes and names wrap on a phone
A blob header's hash and a commit's download names are single words
wider than a phone's content area, so the whole main area scrolled
sideways. The hash may now break anywhere, and below 640px a download
name may too, while wider screens keep each name on one line with its
signature.
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/cgit.css | 8 |
1 file changed, 8 insertions, 0 deletions
diff --git a/assets/cgit.css b/assets/cgit.css index cb865ce..2d1be91 100644 --- a/assets/cgit.css +++ b/assets/cgit.css @@ -816,6 +816,10 @@ div#cgit table.blob { overflow-x: auto; } +div#cgit div.blob-header { + overflow-wrap: anywhere; +} + div#cgit table.blob td.lines { padding: 0 0 0 0.5em; vertical-align: top; @@ -1406,6 +1410,10 @@ div#cgit form.login input[type="password"] { display: none; } + div#cgit span.snapshot { + white-space: normal; + } + div#cgit table.repolist { width: 100%; } |
