summaryrefslogtreecommitdiffstats
path: root/gitweb/static/gitweb.css
diff options
context:
space:
mode:
authorRito Rhymes <rito@ritovision.com>2026-02-16 15:53:28 +0000
committerJunio C Hamano <gitster@pobox.com>2026-02-17 11:49:12 -0800
commit5be380d865972652a2cfd3f1f8d090c87489d904 (patch)
tree569f299ab2015b6ac462b27902a640486cd6afae /gitweb/static/gitweb.css
parent18e71bbda1e4e8418a590a3a9490ccdaec7deba0 (diff)
downloadgit-5be380d865972652a2cfd3f1f8d090c87489d904.tar.gz
git-5be380d865972652a2cfd3f1f8d090c87489d904.zip
gitweb: prevent project search bar from overflowing on mobile
On narrow screens, the project search input can exceed the available width and force page-wide horizontal scrolling. Add a mobile media query and apply side padding to the search container, then cap the input width to its container with border-box sizing so the form stays within the viewport. Signed-off-by: Rito Rhymes <rito@ritovision.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/static/gitweb.css')
-rw-r--r--gitweb/static/gitweb.css12
1 files changed, 12 insertions, 0 deletions
diff --git a/gitweb/static/gitweb.css b/gitweb/static/gitweb.css
index 48d2e51015..0b63acc0e2 100644
--- a/gitweb/static/gitweb.css
+++ b/gitweb/static/gitweb.css
@@ -684,3 +684,15 @@ div.remote {
.kwb { color:#830000; }
.kwc { color:#000000; font-weight:bold; }
.kwd { color:#010181; }
+
+@media (max-width: 768px) {
+ div.projsearch {
+ padding: 0 8px;
+ box-sizing: border-box;
+ }
+
+ div.projsearch input[type="text"] {
+ max-width: 100%;
+ box-sizing: border-box;
+ }
+}