]> Kevux Git Server - rit/commit
gitweb: fix mobile page overflow across log/commit/blob/diff views
authorRito Rhymes <rito@ritovision.com>
Mon, 16 Feb 2026 15:53:29 +0000 (15:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2026 19:49:12 +0000 (11:49 -0800)
commitfd10720357f01baa8a07ff6fa8e22de198424fd3
treeeefcfb3d72dc988f87010c147817cba45e5922e4
parent5be380d865972652a2cfd3f1f8d090c87489d904
gitweb: fix mobile page overflow across log/commit/blob/diff views

On mobile-sized viewports, gitweb pages in log/commit/blob/diff views can
overflow horizontally due to desktop-oriented paddings and fixed-width
preformatted content.

Extend the existing mobile media query to rebalance those layouts: reduce
or clear paddings in log/commit sections, and allow horizontal scrolling
for preformatted blob/diff content instead of forcing page-wide overflow.

All layout adjustments in this patch are mobile-scoped, except one global
safeguard: set overflow-wrap:anywhere on div.log_body. Log content can
contain escaped or non-breaking text that behaves like a single long token
and can overflow at any viewport width, including desktop.

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