Skip to content

Commit

Permalink
Fix broken forms (#33082)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Jan 2, 2025
1 parent d371aa3 commit 7a35f90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions routers/web/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion web_src/css/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 7a35f90

Please sign in to comment.