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 @@ | |
| 39 | 39 | </div> | |
| 40 | 40 | ||
| 41 | 41 | {{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"> | |
| 44 | 44 | <span>{{.FileType}} {{if eq .FileType "R"}}{{.OldName}} => {{end}}</span> | |
| 45 | 45 | <a href="#diff-{{.Name}}">{{.Name}}</a> | |
| 46 | 46 | </div> | |
| 47 | 47 | ||
| 48 | - | <div> | |
| 48 | + | <div style="width: 50px;"> | |
| 49 | 49 | <span class="color-green">+{{.NumAdditions}}</span>, | |
| 50 | 50 | <span class="color-red">-{{.NumDeletions}}</span> | |
| 51 | 51 | </div> |
+0,
-8
| ... | ... | @@ -267,14 +267,6 @@ footer { | |
| 267 | 267 | background-color: var(--bg-color); | |
| 268 | 268 | } | |
| 269 | 269 | ||
| 270 | - | .diff-file { | |
| 271 | - | align-items: center; | |
| 272 | - | position: sticky; | |
| 273 | - | top: 0; | |
| 274 | - | left: 0; | |
| 275 | - | background-color: var(--bg-color); | |
| 276 | - | } | |
| 277 | - | ||
| 278 | 270 | .white-space-bs { | |
| 279 | 271 | white-space: break-spaces; | |
| 280 | 272 | } |