Fix edit OAuth application width (#25262) (#25263)

Backport #25262 by @denyskon

The `<div class="ui container">` broke the width of this section - fix
by removing it.

Before:

![grafik](https://github.com/go-gitea/gitea/assets/47871822/df655636-0dc3-4c8a-9778-a14c80fc807b)

After:

![grafik](https://github.com/go-gitea/gitea/assets/47871822/e74c74be-097e-43fb-a698-92337aa128e9)

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
This commit is contained in:
Giteabot 2023-06-14 20:39:51 -04:00 committed by GitHub
parent 5191ab6445
commit 037366f93f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 44 additions and 46 deletions

View File

@ -1,11 +1,10 @@
<div class="ui container"> <h4 class="ui top attached header">
<h4 class="ui top attached header">
{{.locale.Tr "settings.edit_oauth2_application"}} {{.locale.Tr "settings.edit_oauth2_application"}}
</h4> </h4>
<div class="ui attached segment"> <div class="ui attached segment">
<p>{{.locale.Tr "settings.oauth2_application_create_description"}}</p> <p>{{.locale.Tr "settings.oauth2_application_create_description"}}</p>
</div> </div>
<div class="ui attached segment form ignore-dirty"> <div class="ui attached segment form ignore-dirty">
{{.CsrfTokenHtml}} {{.CsrfTokenHtml}}
<div class="field"> <div class="field">
<label for="client-id">{{.locale.Tr "settings.oauth2_client_id"}}</label> <label for="client-id">{{.locale.Tr "settings.oauth2_client_id"}}</label>
@ -30,8 +29,8 @@
<button class="btn interact-bg" type="submit">{{.locale.Tr "settings.oauth2_regenerate_secret"}}</button> <button class="btn interact-bg" type="submit">{{.locale.Tr "settings.oauth2_regenerate_secret"}}</button>
</form> </form>
</div> </div>
</div> </div>
<div class="ui attached bottom segment"> <div class="ui attached bottom segment">
<form class="ui form ignore-dirty" action="{{.FormActionPath}}" method="post"> <form class="ui form ignore-dirty" action="{{.FormActionPath}}" method="post">
{{.CsrfTokenHtml}} {{.CsrfTokenHtml}}
<div class="field {{if .Err_AppName}}error{{end}}"> <div class="field {{if .Err_AppName}}error{{end}}">
@ -50,5 +49,4 @@
{{.locale.Tr "settings.save_application"}} {{.locale.Tr "settings.save_application"}}
</button> </button>
</form> </form>
</div>
</div> </div>