From a8f606c4a77966d53dbb9fc591714b2f8ac10cc6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 29 Oct 2026 15:27:32 -1000 Subject: 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. --- assets/cgit.css | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'assets/cgit.css') 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%; } -- cgit