Commit f6ea3dc

Eric Bower  ·  2026-05-16 20:10:59 -0400 EDT
parent 444e2e0
style: make commit diff sticky consistent with other sticky
2 files changed,  +3, -11
+3, -3
 1@@ -39,13 +39,13 @@
 2   </div>
 3 
 4   {{range .Diff.Files}}
 5-    <div id="diff-{{.Name}}" class="flex justify-between mono py diff-file">
 6-      <div>
 7+    <div id="diff-{{.Name}}" class="box sticky border-visited flex items-center justify-between mono py">
 8+      <div class="flex-1">
 9         <span>{{.FileType}} {{if eq .FileType "R"}}{{.OldName}} => {{end}}</span>
10         <a href="#diff-{{.Name}}">{{.Name}}</a>
11       </div>
12 
13-      <div>
14+      <div style="width: 50px;">
15         <span class="color-green">+{{.NumAdditions}}</span>,
16         <span class="color-red">-{{.NumDeletions}}</span>
17       </div>
+0, -8
 1@@ -267,14 +267,6 @@ footer {
 2   background-color: var(--bg-color);
 3 }
 4 
 5-.diff-file {
 6-  align-items: center;
 7-  position: sticky;
 8-  top: 0;
 9-  left: 0;
10-  background-color: var(--bg-color);
11-}
12-
13 .white-space-bs {
14   white-space: break-spaces;
15 }