1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-08 00:44:26 +00:00

Fix broken forms (#33082)

This commit is contained in:
wxiaoguang 2025-01-03 03:57:34 +08:00 committed by GitHub
parent d371aa3031
commit 7a35f90b29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -228,8 +228,12 @@ func CreatePost(ctx *context.Context) {
ctx.Data["Licenses"] = repo_module.Licenses
ctx.Data["Readmes"] = repo_module.Readmes
// the logic is still buggy, the complete fix is in 1.24
ctx.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate
ctx.Data["CanCreateRepo"] = ctx.Doer.CanCreateRepo()
ctx.Data["MaxCreationLimit"] = ctx.Doer.MaxCreationLimit()
ctx.Data["SupportedObjectFormats"] = git.DefaultFeatures().SupportedObjectFormats
ctx.Data["DefaultObjectFormat"] = git.Sha1ObjectFormat
ctxUser := checkContextUser(ctx, form.UID)
if ctx.Written() {

View File

@ -483,7 +483,7 @@ textarea:focus,
margin-bottom: 1em;
width: 100%;
}
.new.org .ui.form .field input {
.new.org .ui.form .field input:not([type="checkbox"], [type="radio"]) {
width: 100% !important;
}
}