From eea58a5d5563da818e70db514a4109fe17008d69 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 4 Jul 2023 04:38:06 +0800 Subject: [PATCH] Fix UI misalignment on user setting page (#25629) 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)
--- 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}}
- - - {{end}} - - - - -