From 1ebefd01d0510e8bc61d0250e517eacdede0e498 Mon Sep 17 00:00:00 2001 From: Amolith Date: Fri, 17 Oct 2025 17:34:23 -0600 Subject: [PATCH] chore: web UI polish Fixes: bug-45aeed6 Co-authored-by: Crush --- pkg/web/static/overrides.css | 7 ++++++- pkg/web/templates/branches.html | 8 ++++---- pkg/web/templates/commit.html | 22 ++++------------------ pkg/web/templates/commits.html | 8 ++++---- pkg/web/templates/tags.html | 8 ++++---- pkg/web/webui.go | 9 +++++++++ 6 files changed, 31 insertions(+), 31 deletions(-) diff --git a/pkg/web/static/overrides.css b/pkg/web/static/overrides.css index 5b7d1ff16c4281d8f3dc68cf21d30dc12d179182..b974f316ca94320ecf4f2de9aaa69cee0ff5e112 100644 --- a/pkg/web/static/overrides.css +++ b/pkg/web/static/overrides.css @@ -108,6 +108,11 @@ article > header > h2, article > header > h3, article > header > h4, article > header > h5, -article > header > h6 { +article > header > h6, +article > header > p { + margin-bottom: 0; +} + +article > p:only-child { margin-bottom: 0; } diff --git a/pkg/web/templates/branches.html b/pkg/web/templates/branches.html index 54c1cd726445342bb004c4c8a6d570966abd9053..d67243085c114cc14968d5d5e24470218e7dc144 100644 --- a/pkg/web/templates/branches.html +++ b/pkg/web/templates/branches.html @@ -24,10 +24,10 @@
{{$body}}
{{end}} -

- by {{.Commit.Author.Name}} on - -

+

+ {{.Commit.Author.Name}} created + +

{{end}}
Files diff --git a/pkg/web/templates/commit.html b/pkg/web/templates/commit.html index 7a0c131475df28dd5936c51c0e08977d98a17e6b..638bc5aca7e83d821ffe159bee52b0350dcf403d 100644 --- a/pkg/web/templates/commit.html +++ b/pkg/web/templates/commit.html @@ -7,28 +7,14 @@
-

{{.Commit.Message | commitSubject}}

+
+

{{.Commit.Message | commitSubject}}

+

{{.Commit.Author.Name}} created

+
{{$body := .Commit.Message | commitBody}} {{if $body}}
{{$body}}
{{end}} -
-
Author
-
{{.Commit.Author.Name}} <{{.Commit.Author.Email}}>
- -
Date
-
- -
Commit
-
{{.Commit.ID}}
- - {{if .ParentIDs}} -
Parent{{if gt (len .ParentIDs) 1}}s{{end}}
-
- {{range $i, $parent := .ParentIDs}}{{if $i}}, {{end}}{{$parent | shortHash}}{{end}} -
- {{end}} -