Skip to content

Commit cd42c06

Browse files
committed
slightly reduce button size
1 parent 9a8a09a commit cd42c06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/repo/header.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<form method="post" action="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}">
4646
{{$.CsrfTokenHtml}}
4747
<div class="ui labeled button{{if not $.IsSigned}} poping up{{end}}" tabindex="0"{{if not $.IsSigned}} data-content="{{$.i18n.Tr "repo.watch_guest_user" }}" data-position="top center" data-variation="tiny"{{end}}>
48-
<button type="submit" class="ui compact basic button"{{if not $.IsSigned}} disabled{{end}}>
48+
<button type="submit" class="ui compact small basic button"{{if not $.IsSigned}} disabled{{end}}>
4949
{{if $.IsWatchingRepo}}{{svg "octicon-eye-closed" 16}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{svg "octicon-eye"}}{{$.i18n.Tr "repo.watch"}}{{end}}
5050
</button>
5151
<a class="ui basic label" href="{{.Link}}/watchers">
@@ -56,7 +56,7 @@
5656
<form method="post" action="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}">
5757
{{$.CsrfTokenHtml}}
5858
<div class="ui labeled button{{if not $.IsSigned}} poping up{{end}}" tabindex="0"{{if not $.IsSigned}} data-content="{{$.i18n.Tr "repo.star_guest_user" }}" data-position="top center" data-variation="tiny"{{end}}>
59-
<button type="submit" class="ui compact basic button"{{if not $.IsSigned}} disabled{{end}}>
59+
<button type="submit" class="ui compact small basic button"{{if not $.IsSigned}} disabled{{end}}>
6060
{{if $.IsStaringRepo}}{{svg "octicon-star-fill"}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{svg "octicon-star"}}{{$.i18n.Tr "repo.star"}}{{end}}
6161
</button>
6262
<a class="ui basic label" href="{{.Link}}/stars">
@@ -66,7 +66,7 @@
6666
</form>
6767
{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
6868
<div class="ui labeled button" tabindex="0">
69-
<a class="ui compact basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny">
69+
<a class="ui compact small basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny">
7070
{{svg "octicon-repo-forked"}}{{$.i18n.Tr "repo.fork"}}
7171
</a>
7272
<a class="ui basic label" href="{{.Link}}/forks">

0 commit comments

Comments
 (0)