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
......@@ -39,13 +39,13 @@
3939 </div>
4040
4141 {{range .Diff.Files}}
42- <div id="diff-{{.Name}}" class="flex justify-between mono py diff-file">
43- <div>
42+ <div id="diff-{{.Name}}" class="box sticky border-visited flex items-center justify-between mono py">
43+ <div class="flex-1">
4444 <span>{{.FileType}} {{if eq .FileType "R"}}{{.OldName}} => {{end}}</span>
4545 <a href="#diff-{{.Name}}">{{.Name}}</a>
4646 </div>
4747
48- <div>
48+ <div style="width: 50px;">
4949 <span class="color-green">+{{.NumAdditions}}</span>,
5050 <span class="color-red">-{{.NumDeletions}}</span>
5151 </div>
+0, -8
......@@ -267,14 +267,6 @@ footer {
267267 background-color: var(--bg-color);
268268 }
269269
270-.diff-file {
271- align-items: center;
272- position: sticky;
273- top: 0;
274- left: 0;
275- background-color: var(--bg-color);
276-}
277-
278270 .white-space-bs {
279271 white-space: break-spaces;
280272 }