Skip to content

Commit b74a967

Browse files
sveinnthorarinsGusted
authored andcommitted
add spacing between sign in button's icon and text (go-gitea#33609)
This pull request edits the head_navbar template and adds spacing between the icon and the text inside the sign in button of the navbar (button which displays at the top right of Gitea's pages when the user is not signed in). It bugged me that there was no spacing between the button's contents so I test ran this change quickly on my server and thought it looked a lot better, so decided to make this pull request. Up to you to decide if you agree that it looks better :) (cherry picked from commit 62389dd)
1 parent 85124bc commit b74a967

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/base/head_navbar.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,13 @@
194194
{{else}}
195195
{{if .ShowRegistrationButton}}
196196
<a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
197-
{{svg "octicon-person"}} {{ctx.Locale.Tr "register"}}
197+
{{svg "octicon-person"}}
198+
<span class="tw-ml-1">{{ctx.Locale.Tr "register"}}</span>
198199
</a>
199200
{{end}}
200201
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}">
201-
{{svg "octicon-sign-in"}} {{ctx.Locale.Tr "sign_in"}}
202+
{{svg "octicon-sign-in"}}
203+
<span class="tw-ml-1">{{ctx.Locale.Tr "sign_in"}}</span>
202204
</a>
203205
{{end}}
204206
</div><!-- end full right menu -->

0 commit comments

Comments
 (0)