diff --git a/templates/user/settings/keys.tmpl b/templates/user/settings/keys.tmpl
index 86d2204eb..0a1d380f6 100644
--- a/templates/user/settings/keys.tmpl
+++ b/templates/user/settings/keys.tmpl
@@ -4,7 +4,6 @@
{{template "base/alert" .}}
{{template "user/settings/keys_ssh" .}}
-
{{template "user/settings/keys_gpg" .}}
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 45e745940..97de03c03 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -1225,7 +1225,7 @@ i.icon.centerlock {
}
/* https://github.com/go-gitea/gitea/issues/10210 */
-.ui.attached.segment + .ui.attached.header {
+.ui.attached.segment ~ .ui.attached.header {
margin-top: 1rem;
}