Skip to content

Commit

Permalink
Fixed margin in subjects when they're split into more than one line
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Nov 8, 2023
1 parent 3d622a5 commit 37ffb4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/webserver/embedded/views/partials/docs-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ <h5>{{t $lang "Unknown author"}}</h5>
{{ end }}

{{ if $book.Subjects }}
<div class="mb-3">
<div>
{{range $i, $subject := $book.Subjects}}
{{$subjectTitle := t $lang "Search for more titles in %s" $subject}}
<a class="btn btn-secondary btn-sm" href="/{{$lang}}?search=Subjects&colon;&quot;{{$subject}}&quot;" title={{$subjectTitle}}>{{$subject}}</a>
<a class="btn btn-secondary btn-sm mb-3" href="/{{$lang}}?search=Subjects&colon;&quot;{{$subject}}&quot;" title={{$subjectTitle}}>{{$subject}}</a>
{{end}}
</div>
{{ end }}
Expand Down

0 comments on commit 37ffb4a

Please sign in to comment.