Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce 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/cgit.css')
-rw-r--r--assets/cgit.css8
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%;
}