From e610b0389aa567218082b0314b93af06301941c1 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Mon, 3 Jul 2023 17:16:58 -0400 Subject: [PATCH] Fix UI misalignment on user setting page (#25629) (#25656) Backport #25629 by @wxiaoguang Fix #25628 Diff with ignoring space: https://github.com/go-gitea/gitea/pull/25629/files?diff=unified&w=1 The "modal" shouldn't appear between "ui attached segment", otherwise these segments lose margin-top. After the fix:
![image](https://github.com/go-gitea/gitea/assets/2114189/ac15e73d-4ca8-416a-950d-ffc912c6ab61) ![image](https://github.com/go-gitea/gitea/assets/2114189/eb431336-4d21-4e44-8beb-8919595a83c8) ![image](https://github.com/go-gitea/gitea/assets/2114189/dffaed88-5ba2-419d-a241-24cb200f757c) ![image](https://github.com/go-gitea/gitea/assets/2114189/e8c5a03e-e16a-4c94-a1a5-7845d4e1a824)
Co-authored-by: wxiaoguang --- templates/user/settings/account.tmpl | 38 ++++++++----------- .../settings/applications_oauth2_list.tmpl | 23 +++++------ templates/user/settings/grants_oauth2.tmpl | 18 ++++----- .../user/settings/security/accountlinks.tmpl | 18 ++++----- templates/user/settings/security/openid.tmpl | 18 ++++----- templates/user/settings/security/twofa.tmpl | 18 ++++----- .../user/settings/security/webauthn.tmpl | 19 +++++----- web_src/css/repo.css | 4 -- 8 files changed, 73 insertions(+), 83 deletions(-) diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 01f70e4cc2..0b57720c96 100644 --- a/templates/user/settings/account.tmpl +++ b/templates/user/settings/account.tmpl @@ -39,32 +39,26 @@ {{.locale.Tr "settings.manage_emails"}}
- - -
- - {{end}} - - - - -