mirror of
1
Fork 0

chore(ui): improve svg icon margin consistency (#7172)

* followup to https://codeberg.org/forgejo/forgejo/pulls/7031#issuecomment-2868277: no visible changes
* followup to https://codeberg.org/forgejo/forgejo/pulls/6963: apply a small margin to the icon

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7172
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Co-committed-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
0ko 2025-03-09 15:05:34 +00:00 committed by Gusted
parent 8fce7fbec7
commit 140b28b60d
2 changed files with 5 additions and 5 deletions

View File

@ -194,13 +194,13 @@
{{else}}
{{if .ShowRegistrationButton}}
<a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
{{svg "octicon-person"}}
<span class="tw-ml-1">{{ctx.Locale.Tr "register"}}</span>
{{svg "octicon-person" 16 "tw-mr-1"}}
<span>{{ctx.Locale.Tr "register"}}</span>
</a>
{{end}}
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}">
{{svg "octicon-sign-in"}}
<span class="tw-ml-1">{{ctx.Locale.Tr "sign_in"}}</span>
{{svg "octicon-sign-in" 16 "tw-mr-1"}}
<span>{{ctx.Locale.Tr "sign_in"}}</span>
</a>
{{end}}
</div><!-- end full right menu -->

View File

@ -105,7 +105,7 @@
<div class="ui g-modal-confirm delete modal" id="regenerate-token">
<div class="header">
{{svg "octicon-issue-reopened"}}
{{svg "octicon-issue-reopened" 16 "tw-mr-1"}}
{{ctx.Locale.Tr "settings.access_token_regeneration"}}
</div>
<div class="content">