[PATCH 5/5] css: wrap long unbroken repo names in mobile header
Rito Rhymes
rito at ritovision.com
Wed Feb 25 23:07:29 UTC 2026
At the mobile breakpoint, target the repo-name link in the header main
cell and allow wrapping for long unbroken names.
This prevents horizontal overflow from long repo names on narrow screens.
Signed-off-by: Rito Rhymes <rito at ritovision.com>
---
cgit.css | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cgit.css b/cgit.css
index e0fb696..34ad5b8 100644
--- a/cgit.css
+++ b/cgit.css
@@ -928,6 +928,10 @@ div#cgit table.ssdiff td.space div {
padding-left: 0;
}
+ div#cgit table#header td.main a:nth-of-type(2) {
+ overflow-wrap: anywhere;
+ }
+
div#cgit table#header td.form {
grid-column: 2;
grid-row: 2;
--
2.51.0
More information about the CGit
mailing list