diff --git a/appview/pages/templates/timeline/fragments/trending.html b/appview/pages/templates/timeline/fragments/trending.html index 97b4addc..ffe81b69 100644 --- a/appview/pages/templates/timeline/fragments/trending.html +++ b/appview/pages/templates/timeline/fragments/trending.html @@ -5,13 +5,11 @@ Trending {{ if .Repos }} - - +
{{ range $index, $repo := .Repos }} {{ template "singleLineRepo" (list $ $repo) }} {{ end }} -
-
+ {{ else }}
No trending repositories this week @@ -25,25 +23,26 @@ {{ $repo := index . 1 }} {{ with $repo }} {{ $repoOwner := resolve .Did }} - - -
- {{ i "star" "w-3 h-3 fill-current shrink-0" }} - {{ if .RepoStats }} - {{ scaleFmt .RepoStats.StarCount }} - {{ else }} - 0 - {{ end }} -
- - - + {{/* a real anchor per row: a stretched (absolute inset-0) link inside a + position:relative table row breaks hit-testing on safari, which does + not support positioned table rows as containing blocks */}} + +
+ {{ i "star" "w-3 h-3 fill-current shrink-0 mt-1" }} + {{ if .RepoStats }} + {{ scaleFmt .RepoStats.StarCount }} + {{ else }} + 0 + {{ end }} +
+
{{ $repoOwner }}/{{ .Name }} {{ with .Description }} {{ . | description }} {{ end }} - - +
+
{{ if and .RepoStats .RepoStats.Language }} {{ $lang := .RepoStats.Language }} {{ $display := $lang }} @@ -55,8 +54,8 @@ {{ $display }}
{{ end }} - - +
+ {{ end }} {{ end }}