use fixed-width numbers in tag names
Alan Pearce alan@alanpearce.eu
Sun, 30 Mar 2025 00:37:49 +0100
2 files changed, 5 insertions(+), 1 deletions(-)
M static/style.css → static/style.css
@@ -248,6 +248,10 @@ display: inline-block; padding-top: 0.7em; } +.tag-name { + font-variant-numeric: tabular-nums; +} + .refs pre { white-space: pre-wrap; padding-bottom: 0.5rem;
M templates/refs.go → templates/refs.go
@@ -40,7 +40,7 @@ H3(g.Text("tags")), Div(Class("refs"), g.Map(tags, func(tag *git.TagReference) g.Node { return Div( - Strong(g.Text(tag.Name())), + Strong(Class("tag-name"), g.Text(tag.Name())), A(Href(fmt.Sprintf("/%s/tree/%s/", data.Name, tag.Name())), g.Text("browse")), g.Text(" "), A(Href(fmt.Sprintf("/%s/log/%s", data.Name, tag.Name())), g.Text("log")),