repos / git-pr

a self-hosted git collaboration server
git clone https://github.com/picosh/git-pr.git

commit
bbadbe0
parent
4015eb8
author
Eric Bower
date
2024-10-25 20:36:28 -0400 EDT
style: wrap file links
2 files changed,  +7, -3
M static/git-pr.css
+4, -0
 1@@ -45,6 +45,10 @@ details {
 2   max-width: calc(100% - 300px);
 3 }
 4 
 5+.word-break-word {
 6+  word-break: break-word;
 7+}
 8+
 9 @media only screen and (max-width: 40em) {
10   .collapse {
11     flex-direction: column;
M tmpl/patchset.html
+3, -3
 1@@ -11,7 +11,7 @@
 2           <div>
 3             <h3 class="text-lg text-transform-none m-0 p-0 mb">
 4               {{if $patch.Review}}<code class="pill-review">REVIEW</code>{{end}}
 5-              <a href="#{{$patch.Url}}">{{$patch.Title}}</a>
 6+              <a href="#{{$patch.Url}}" class="word-break-word">{{$patch.Title}}</a>
 7             </h3>
 8 
 9             <div class="flex justify-between items-center text-sm">
10@@ -24,7 +24,7 @@
11 
12           {{range $patch.PatchFiles}}
13             <div class="flex justify-between items-center">
14-              <a class="flex-1" href="#patch-{{$patch.ID}}-{{.NewName}}">{{.NewName}}</a>
15+              <a class="flex-1 word-break-word" href="#patch-{{$patch.ID}}-{{.NewName}}">{{.NewName}}</a>
16               <div class="flex gap">
17                 <code class="pill-success">+{{.Adds}}</code>
18                 <code class="pill-admin">-{{.Dels}}</code>
19@@ -49,7 +49,7 @@
20           {{range $patch.PatchFiles}}
21             <div>
22               <div class="group-h" id="patch-{{$patch.ID}}-{{.NewName}}">
23-                <a href="#patch-{{$patch.ID}}-{{.NewName}}">{{.NewName}}</a>
24+                <a href="#patch-{{$patch.ID}}-{{.NewName}}" class="word-break-word">{{.NewName}}</a>
25                 <div class="flex gap">
26                   <code class="pill-success">+{{.Adds}}</code>
27                   <code class="pill-admin">-{{.Dels}}</code>