forked from tangled.org/core
this repo has no description

appview: pages/templates: consistent buttons for new issues/pulls

Also make the repo action button font size text-sm.

Changed files
+7 -7
appview
pages
templates
fragments
repo
issues
pulls
+3 -3
appview/pages/templates/fragments/repoActions.html
···
{{ else }}
{{ i "star" "w-4 h-4" }}
{{ end }}
-
<span>
+
<span class="text-sm">
{{ .Stats.StarCount }}
</span>
</div>
</button>
{{ if .DisableFork }}
-
<button class="btn no-underline hover:no-underline flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed" disabled title="Empty repositories cannot be forked">
+
<button class="btn text-sm no-underline hover:no-underline flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed" disabled title="Empty repositories cannot be forked">
{{ i "git-fork" "w-4 h-4"}}
fork
</button>
{{ else }}
-
<a class="btn no-underline hover:no-underline flex items-center gap-2" href="/{{ .FullName }}/fork">
+
<a class="btn text-sm no-underline hover:no-underline flex items-center gap-2" href="/{{ .FullName }}/fork">
{{ i "git-fork" "w-4 h-4"}}
fork
</a>
+2 -2
appview/pages/templates/repo/issues/issues.html
···
<a
href="/{{ .RepoInfo.FullName }}/issues/new"
class="btn text-sm flex items-center gap-2 no-underline hover:no-underline">
-
{{ i "plus" "w-4 h-4" }}
-
<span>new issue</span>
+
{{ i "circle-plus" "w-4 h-4" }}
+
<span>new</span>
</a>
</div>
<div class="error" id="issues"></div>
+2 -2
appview/pages/templates/repo/pulls/pulls.html
···
href="/{{ .RepoInfo.FullName }}/pulls/new"
class="btn text-sm flex items-center gap-2 no-underline hover:no-underline dark:text-white dark:bg-gray-700 dark:hover:bg-gray-600"
>
-
{{ i "git-pull-request" "w-4 h-4" }}
-
<span>new pull request</span>
+
{{ i "git-pull-request-create" "w-4 h-4" }}
+
<span>new</span>
</a>
</div>
<div class="error" id="pulls"></div>