repos / git-pr

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

commit
be8c814
parent
1664761
author
Eric Bower
date
2024-09-02 21:51:30 -0400 EDT
style: tweaks
4 files changed,  +22, -10
M static/smol.css
+16, -1
 1@@ -86,6 +86,16 @@ small {
 2   font-size: 0.8rem;
 3 }
 4 
 5+details {
 6+  border: 2px solid var(--grey-light);
 7+  padding: calc(var(--line-height) - 2px) 1ch;
 8+  margin-bottom: var(--line-height);
 9+}
10+
11+details[open] summary {
12+  margin-bottom: var(--line-height);
13+}
14+
15 summary {
16   display: list-item;
17   cursor: pointer;
18@@ -171,13 +181,18 @@ ol {
19   padding: 0 0 0 var(--line-height);
20   list-style-position: inside;
21   list-style-type: square;
22-  margin: 0;
23+  margin: var(--line-height) 0;
24 }
25 
26 ul[style*="list-style-type: none;"] {
27   padding: 0;
28 }
29 
30+ol ul, ol ol, ul ol, ul ul {
31+  padding: 0 0 0 3ch;
32+  margin: 0;
33+}
34+
35 li {
36   margin: 0;
37   padding: 0;
M tmpl/patch.html
+1, -4
 1@@ -15,8 +15,5 @@
 2 
 3 {{if .BodyAppendix}}<pre class="m-0">{{.BodyAppendix}}</pre>{{end}}
 4 
 5-<details>
 6-  <summary>Patch</summary>
 7-  <div>{{.DiffStr}}</div>
 8-</details>
 9+<div>{{.DiffStr}}</div>
10 {{end}}
M tmpl/pr-detail.html
+4, -4
 1@@ -18,7 +18,7 @@
 2 <hr />
 3 
 4 <main class="group">
 5-  <div class="box group text-sm">
 6+  <div class="box-sm group text-sm">
 7     <h3 class="text-lg">Logs</h3>
 8 
 9     {{range .Logs}}
10@@ -49,7 +49,7 @@
11     {{end}}
12   </div>
13 
14-  <div class="box group text-sm">
15+  <div class="box-sm group text-sm">
16     <h3 class="text-lg">Patchsets</h3>
17 
18     {{range .Patchsets}}
19@@ -57,7 +57,7 @@
20         <summary class="text-sm">Diff ↕</summary>
21         <div class="group">
22           {{range .DiffPatches}}
23-            <div class="box-sm{{if .Review}}-review{{end}} group" id="{{.Url}}">
24+            <div class="group" id="{{.Url}}">
25               {{template "patch" .}}
26             </div>
27           {{else}}
28@@ -79,7 +79,7 @@
29 
30   <div class="group">
31     {{range $idx, $val := .Patches}}
32-      <div class="box{{if .Review}}-review{{end}} group" id="{{.Url}}">
33+      <div class="group" id="{{.Url}}">
34         {{template "patch" .}}
35       </div>
36     {{else}}
M tmpl/pr-header.html
+1, -1
1@@ -5,7 +5,7 @@
2     <span> / {{.Pr.Title}} <code>#{{.Pr.ID}}</code></span>
3   </h1>
4 
5-  <div class="text-sm">
6+  <div class="text-sm mb">
7     {{template "pr-status" .Pr.Status}}
8     <span>&middot;</span>
9     <span>opened on <date>{{.Pr.Date}}</date> by</span>