Skip to content

Commit 62389dd

Browse files
add spacing between sign in button's icon and text (#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 :)
1 parent 950abfe commit 62389dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: templates/base/head_navbar.tmpl

+4-2
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,13 @@
175175
{{else}}
176176
{{if .ShowRegistrationButton}}
177177
<a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
178-
{{svg "octicon-person"}} {{ctx.Locale.Tr "register"}}
178+
{{svg "octicon-person"}}
179+
<span class="tw-ml-1">{{ctx.Locale.Tr "register"}}</span>
179180
</a>
180181
{{end}}
181182
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}">
182-
{{svg "octicon-sign-in"}} {{ctx.Locale.Tr "sign_in"}}
183+
{{svg "octicon-sign-in"}}
184+
<span class="tw-ml-1">{{ctx.Locale.Tr "sign_in"}}</span>
183185
</a>
184186
{{end}}
185187
</div><!-- end full right menu -->

0 commit comments

Comments
 (0)