fix(icon): use repo-forked icon to display forks count (#37731)

This could avoid confusion about what the icon means. It can be
considered as for Pull Requests count by mistaken if we use that icon.
This commit is contained in:
Gary Wang
2026-05-17 03:08:43 +08:00
committed by GitHub
parent ae69aec295
commit edf0dfd1df

View File

@@ -48,7 +48,7 @@
</a>
{{end}}
<a class="flex-text-inline" href="{{.Link}}/forks">
<span class="tw-contents" aria-label="{{ctx.Locale.Tr "repo.forks"}}">{{svg "octicon-git-branch" 16}}</span>
<span class="tw-contents" aria-label="{{ctx.Locale.Tr "repo.forks"}}">{{svg "octicon-repo-forked" 16}}</span>
<span {{if ge .NumForks 1000}}data-tooltip-content="{{.NumForks}}"{{end}}>{{CountFmt .NumForks}}</span>
</a>
</div>