]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitweb: fix mobile footer overflow by wrapping text and clearing floats
authorRito Rhymes <rito@ritovision.com>
Mon, 16 Feb 2026 15:53:30 +0000 (15:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2026 19:49:13 +0000 (11:49 -0800)
On narrow screens, footer text can wrap, but the fixed 22px footer height
and floated footer blocks can cause overflow.

Switch to min-height and add a clearfix on the footer container so it grows
to contain wrapped float content cleanly.

Signed-off-by: Rito Rhymes <rito@ritovision.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/static/gitweb.css

index 135590b64cbe76da5a19b206ee9f1c43df106cea..824764606333a0bac0606b4d3bde6dc4d846683c 100644 (file)
@@ -73,11 +73,17 @@ div.page_path {
 }
 
 div.page_footer {
-       height: 22px;
+       min-height: 22px;
        padding: 4px 8px;
        background-color: #d9d8d1;
 }
 
+div.page_footer::after {
+       content: "";
+       display: table;
+       clear: both;
+}
+
 div.page_footer_text {
        line-height: 22px;
        float: left;