fix arrow on diff page

main
jolheiser 2025-04-11 14:41:47 -05:00
parent f7bcb11792
commit 753d1f3d20
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func RepoCommitTemplate(rcc RepoCommitContext) Node {
If(file.From.Path != "",
A(Class("underline decoration-text/50 decoration-dashed hover:decoration-solid"), Href(fmt.Sprintf("/%s/tree/%s/%s", rcc.RepoHeaderComponentContext.Name, file.From.Commit, file.From.Path)), Text(file.From.Path)),
),
If(file.From.Path != file.To.Path, Text(" → ")),
If(file.From.Path != "" && file.To.Path != "", Text(" → ")),
If(file.To.Path != "",
A(Class("underline decoration-text/50 decoration-dashed hover:decoration-solid"), Href(fmt.Sprintf("/%s/tree/%s/%s", rcc.RepoHeaderComponentContext.Name, file.To.Commit, file.To.Path)), Text(file.To.Path)),
),