Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Keep the Releases channels cell a table cell

bbbfad25f18c22f6b3362a243c00beaff110d0e0 · Keenan Nemetz · 2d ago · parent 0a12642f

Keep the Releases channels cell a table cell

The Releases table put .label-row on the td itself. That class is
display: inline-flex, so the cell stopped being a table cell: the browser
wrapped it in an anonymous cell, the real column drew no border where it
sat, and the element's own border-bottom was painted over its text instead.
The row separators therefore broke around the Channels column, and a row
with no channel showed a stray short line in the gap.

Wrap the labels in a div inside the cell, as issues.html already does.

Add a test that reads display from the stylesheet and fails when a template
puts a class with a non-table display directly on a td or th, so the next
label cell does not reintroduce the anonymous-cell border.

Fixes 01M8QNH16E5SJ04T6NZJMJQK09.

server/web/templates/releases.html +1−1

@@ -59,7 +59,7 @@
59 59 <tr>
60 60 <td><a href="/{{$.Name}}/releases/{{esc .Name}}">{{.Name}}</a>{{if not .Annotated}} <span class="label">lightweight</span>{{end}}</td>
61 61 <td class="muted">{{.Subject}}</td>
62 {{if $.Channels}}<td class="label-row">{{range $c := index $.ChannelsByTag .Name}}<a class="label" href="/{{$.Name}}/channels/{{$c}}">{{$c}}</a>{{end}}</td>{{end}}
62 {{if $.Channels}}<td><div class="label-row">{{range $c := index $.ChannelsByTag .Name}}<a class="label" href="/{{$.Name}}/channels/{{$c}}">{{$c}}</a>{{end}}</div></td>{{end}}
63 63 <td class="muted">{{if .Tagger}}{{.Tagger}}{{else}}—{{end}}</td>
64 64 <td class="muted">{{since .When}}</td>
65 65 <td><a href="/{{$.Name}}/releases/{{esc .Name}}/archive.tar">tar</a> · <a href="/{{$.Name}}/releases/{{esc .Name}}/archive.tar.gz">tar.gz</a></td>