Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

Give git.progmasoft.com a phone layout

On a phone the mirror pages were drawn 980 px wide and scaled down to
unreadable text (Android Chrome, desktop mode off): head.html had no
viewport meta, so the narrow-screen rules of progmasoft-git.css never
applied.

- head.html declares width=device-width, initial-scale=1.
- Below 720 px the page keeps a 12 px margin, and lists, files, diffs
  and preformatted text scroll inside their own box instead of widening
  the page.

Deployed to the server and checked with Playwright at 390 px (index,
summary, tree, log, file, commit): body text 15 px, no page overflow.

Claude-Session: https://claude.ai/code/session_01Ji7xZMYjc4zankoc7hGBE1
Commit
cf2b6c972c94c30a5d055ca9e24e81ed6b497ff3
Author
Leitwolf11 ·
Parents
7a5711ab4687

Files · Download .tar.gz

Changes

 ops/git/include/head.html         |  1 +
 ops/git/static/progmasoft-git.css | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/ops/git/include/head.html b/ops/git/include/head.html
index 2376219..73da116 100644
--- a/ops/git/include/head.html
+++ b/ops/git/include/head.html
@@ -1 +1,2 @@
+<meta name="viewport" content="width=device-width, initial-scale=1">
 <meta name="theme-color" content="#0066b8">
diff --git a/ops/git/static/progmasoft-git.css b/ops/git/static/progmasoft-git.css
index 11f765c..eea7beb 100644
--- a/ops/git/static/progmasoft-git.css
+++ b/ops/git/static/progmasoft-git.css
@@ -707,6 +707,20 @@ div.footer {
     font-size: 24px;
   }
 
+  div#cgit {
+    width: calc(100% - 24px);
+  }
+
+  /* A list or a file wider than a phone scrolls inside its own box. */
+  table.list,
+  table.blob,
+  table.diff,
+  div.content pre {
+    display: block;
+    max-width: 100%;
+    overflow-x: auto;
+  }
+
   .footer-bottom {
     flex-direction: column;
     align-items: flex-start;