summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-05-14 19:59:18 +0200
committerGitHub <noreply@github.com>2020-05-14 18:59:18 +0100
commit5df72ef7e791807600bc318c0282cf1b2e590b27 (patch)
tree0512377e3398cc563cc41e40212053cc41b482d2 /templates/user
parent9249c810b883406e649586f6731a820c1c96b698 (diff)
downloadgitea-5df72ef7e791807600bc318c0282cf1b2e590b27.tar.gz
gitea-5df72ef7e791807600bc318c0282cf1b2e590b27.zip
Fix svg octicon-key placement (#11410)
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/settings/keys_gpg.tmpl4
-rw-r--r--templates/user/settings/keys_ssh.tmpl4
2 files changed, 6 insertions, 2 deletions
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl
index 3682d3237b..f86b44bef0 100644
--- a/templates/user/settings/keys_gpg.tmpl
+++ b/templates/user/settings/keys_gpg.tmpl
@@ -16,7 +16,9 @@
{{$.i18n.Tr "settings.delete_key"}}
</button>
</div>
- <span class="{{if or .ExpiredUnix.IsZero ($.PageStartTime.Before .ExpiredUnix.AsTime)}}green{{end}}">{{svg "octicon-key" 32}}</span>
+ <div class="left floated content">
+ <span class="{{if or .ExpiredUnix.IsZero ($.PageStartTime.Before .ExpiredUnix.AsTime)}}green{{end}}">{{svg "octicon-key" 32}}</span>
+ </div>
<div class="content">
{{range .Emails}}<strong>{{.Email}} </strong>{{end}}
<div class="print meta">
diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl
index f5c18d760e..fec68adc1f 100644
--- a/templates/user/settings/keys_ssh.tmpl
+++ b/templates/user/settings/keys_ssh.tmpl
@@ -20,7 +20,9 @@
{{$.i18n.Tr "settings.delete_key"}}
</button>
</div>
- <span class="{{if .HasRecentActivity}}green{{end}}" {{if .HasRecentActivity}}data-content="{{$.i18n.Tr "settings.key_state_desc"}}" data-variation="inverted tiny"{{end}}>{{svg "octicon-key" 32}}</span>
+ <div class="left floated content">
+ <span class="{{if .HasRecentActivity}}green{{end}}" {{if .HasRecentActivity}}data-content="{{$.i18n.Tr "settings.key_state_desc"}}" data-variation="inverted tiny"{{end}}>{{svg "octicon-key" 32}}</span>
+ </div>
<div class="content">
<strong>{{.Name}}</strong>
<div class="print meta">