all repos — legit @ 845cce8ea7f1a12046b6c022d4b195c19fd69583

web frontend for git, written in go

css: lose grid layout in refs
Anirudh Oppiliappan x@icyphox.sh
Sat, 24 Dec 2022 15:11:48 +0530
commit

845cce8ea7f1a12046b6c022d4b195c19fd69583

parent

08c49d4dd3c60ae9ea1f645b277cdd5cc8f2b0c1

2 files changed, 6 insertions(+), 12 deletions(-)

jump to
M static/style.cssstatic/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.htmltemplates/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 }}