From 79c4873fc35dddda8b642e121dcec8d6dff9e2a0 Mon Sep 17 00:00:00 2001 From: Amolith Date: Fri, 17 Oct 2025 16:40:55 -0600 Subject: [PATCH] chore: improve web UI styling --- pkg/web/static/overrides.css | 9 +++++++++ pkg/web/templates/branches.html | 16 +++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/pkg/web/static/overrides.css b/pkg/web/static/overrides.css index 00676fec24fc416095883ed48df9c47d79a6e1f2..5b7d1ff16c4281d8f3dc68cf21d30dc12d179182 100644 --- a/pkg/web/static/overrides.css +++ b/pkg/web/static/overrides.css @@ -102,3 +102,12 @@ section[aria-labelledby="diff-heading"] article h4:focus-within .secondary { --pico-font-family-sans-serif: "Atkinson Hyperlegible Next","Atkinson Hyperlegible",system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif,var(--pico-font-family-emoji); --pico-font-family-monospace: "0xProto","JetBrains Mono",ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace,var(--pico-font-family-emoji); } + +article > header > h1, +article > header > h2, +article > header > h3, +article > header > h4, +article > header > h5, +article > header > h6 { + margin-bottom: 0; +} diff --git a/pkg/web/templates/branches.html b/pkg/web/templates/branches.html index 465dc1aa7f61b5108b21027487eb63d513be15ee..54c1cd726445342bb004c4c8a6d570966abd9053 100644 --- a/pkg/web/templates/branches.html +++ b/pkg/web/templates/branches.html @@ -4,12 +4,14 @@ {{if .Branches}} {{range .Branches}}
-

- {{.Ref.Name.Short}} - {{if eq .Ref.Name.Short $.DefaultBranch}} - (default) - {{end}} -

+
+

+ {{.Ref.Name.Short}} + {{if eq .Ref.Name.Short $.DefaultBranch}} + (default) + {{end}} +

+
{{if .Commit}}

{{.Commit.ID | shortHash}} @@ -59,4 +61,4 @@

No branches found

{{end}} -{{end}} \ No newline at end of file +{{end}}