summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/deploy_keys.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-09-07 09:13:11 +0800
committerGitHub <noreply@github.com>2023-09-07 01:13:11 +0000
commit419003adb24495d804b276d2c7d59b170d0a56b7 (patch)
tree83a12e05b83fcbc7878e52db8bbd21548ae92a73 /templates/repo/settings/deploy_keys.tmpl
parent9860dba56601a881d0193edc27f11b4feaab3f6b (diff)
downloadgitea-419003adb24495d804b276d2c7d59b170d0a56b7.tar.gz
gitea-419003adb24495d804b276d2c7d59b170d0a56b7.zip
Improve SSH Key / GPG Key / Deploy Key UI (#26949)
1. In many cases, the `flex-list` has previous and next `gt-hidden` siblings, so relax the CSS selector to remove all ".segument .flex-list" paddings. 2. Make the "Add key" button can toggle 3. Move help message into the related segment(panel). Otherwise users would misread the message, eg: the SSH help seemed for GPG because they are so near 4. Move modal element into the segment element, otherwise it affects the layout
Diffstat (limited to 'templates/repo/settings/deploy_keys.tmpl')
-rw-r--r--templates/repo/settings/deploy_keys.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl
index a9e540bc65..b776848a56 100644
--- a/templates/repo/settings/deploy_keys.tmpl
+++ b/templates/repo/settings/deploy_keys.tmpl
@@ -4,14 +4,14 @@
{{.locale.Tr "repo.settings.deploy_keys"}}
<div class="ui right">
{{if not .DisableSSH}}
- <button class="ui primary tiny show-panel button" data-panel="#add-deploy-key-panel">{{.locale.Tr "repo.settings.add_deploy_key"}}</button>
+ <button class="ui primary tiny show-panel toggle button" data-panel="#add-deploy-key-panel">{{.locale.Tr "repo.settings.add_deploy_key"}}</button>
{{else}}
<button class="ui primary tiny button disabled">{{.locale.Tr "settings.ssh_disabled"}}</button>
{{end}}
</div>
</h4>
<div class="ui attached segment">
- <div class="{{if not .HasError}}gt-hidden{{end}}" id="add-deploy-key-panel">
+ <div class="{{if not .HasError}}gt-hidden{{end}} gt-mb-4" id="add-deploy-key-panel">
<form class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<div class="field">