css: lose grid layout in refs
Anirudh Oppiliappan x@icyphox.sh
Sat, 24 Dec 2022 15:11:48 +0530
2 files changed,
6 insertions(+),
12 deletions(-)
M
static/style.css
→
static/style.css
@@ -213,14 +213,12 @@ display: inline-block;
padding-top: 0.7em; } -.refs { - display: grid; - grid-template-columns: 1fr 1fr; - align-items: center; -} - .refs pre { white-space: pre-wrap; +} + +.refs strong { + padding-right: 1em; } .line-numbers {
M
templates/refs.html
→
templates/refs.html
@@ -16,8 +16,6 @@ <div class="refs">
{{ range .branches }} <div> <strong>{{ .Name.Short }}</strong> - </div> - <div> <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a> <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a> </div>@@ -29,12 +27,10 @@ <div class="refs">
{{ range .tags }} <div> <strong>{{ .Name }}</strong> - {{ if .Message }} - <pre>{{ .Message }}</pre> - </div> - <div> <a href="/{{ $name }}/tree/{{ .Name }}/">browse</a> <a href="/{{ $name }}/log/{{ .Name }}">log</a> + {{ if .Message }} + <pre>{{ .Message }}</pre> </div> {{ end }} {{ end }}