From 62389dd08b620cf0fd76567e0141e8b024c0b62b Mon Sep 17 00:00:00 2001
From: Sveinn Thorarinsson <54820139+sveinnthorarins@users.noreply.github.com>
Date: Sun, 16 Feb 2025 11:27:31 +0000
Subject: [PATCH] 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 :)
---
templates/base/head_navbar.tmpl | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index baf37494b98..eab6c008405 100644
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -175,11 +175,13 @@
{{else}}
{{if .ShowRegistrationButton}}
- {{svg "octicon-person"}} {{ctx.Locale.Tr "register"}}
+ {{svg "octicon-person"}}
+ {{ctx.Locale.Tr "register"}}
{{end}}
- {{svg "octicon-sign-in"}} {{ctx.Locale.Tr "sign_in"}}
+ {{svg "octicon-sign-in"}}
+ {{ctx.Locale.Tr "sign_in"}}
{{end}}