From 9c00e065a117921196f0e0695ceba59546a467b2 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 8 Jan 2025 23:57:18 +0800 Subject: [PATCH] Fix form width (#33151) Fix #33150 --- templates/org/create.tmpl | 84 ++-- templates/repo/create.tmpl | 402 +++++++++--------- templates/repo/migrate/codebase.tmpl | 192 +++++---- templates/repo/migrate/codecommit.tmpl | 204 +++++---- templates/repo/migrate/git.tmpl | 152 ++++--- templates/repo/migrate/gitbucket.tmpl | 234 +++++----- templates/repo/migrate/gitea.tmpl | 226 +++++----- templates/repo/migrate/github.tmpl | 214 +++++----- templates/repo/migrate/gitlab.tmpl | 224 +++++----- templates/repo/migrate/gogs.tmpl | 230 +++++----- templates/repo/migrate/onedev.tmpl | 194 +++++---- templates/repo/pulls/fork.tmpl | 152 ++++--- .../user/auth/signup_openid_connect.tmpl | 58 +-- web_src/css/form.css | 1 + web_src/css/modules/container.css | 3 + 15 files changed, 1275 insertions(+), 1295 deletions(-) diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl index 2f19fd817f..7934d5b722 100644 --- a/templates/org/create.tmpl +++ b/templates/org/create.tmpl @@ -1,54 +1,52 @@ {{template "base/head" .}}
-
-
- {{template "base/alert" .}} -

- {{ctx.Locale.Tr "new_org"}} -

-
-
- {{.CsrfTokenHtml}} -
- - - {{ctx.Locale.Tr "org.org_name_helper"}} -
+
+ {{template "base/alert" .}} +

+ {{ctx.Locale.Tr "new_org"}} +

+
+ + {{.CsrfTokenHtml}} +
+ + + {{ctx.Locale.Tr "org.org_name_helper"}} +
-
- -
-
- - -
-
- - -
-
- - -
+
+ +
+
+ + +
+
+ + +
+
+ +
+
-
- -
- - -
+
+ +
+ +
+
-
- - -
- -
+
+ + +
+
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 36283b35e0..ad308c857c 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -1,224 +1,222 @@ {{template "base/head" .}}
-
-
-

- {{ctx.Locale.Tr "new_repo"}} -

-
- {{template "base/alert" .}} - {{template "repo/create_helper" .}} +
+

+ {{ctx.Locale.Tr "new_repo"}} +

+
+ {{template "base/alert" .}} + {{template "repo/create_helper" .}} - {{if not .CanCreateRepo}} -
-

{{ctx.Locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimit}}

-
- {{end}} -
- {{.CsrfTokenHtml}} -
- -