web/admin: fix scrolling in remaning modals

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-10-20 10:20:32 +02:00
parent d191c2ed7d
commit f1b143606e
6 changed files with 8 additions and 14 deletions

View File

@ -68,9 +68,7 @@ export class MemberSelectTable extends TableModal<User> {
<h1 class="pf-c-title pf-m-2xl">${t`Select users to add`}</h1> <h1 class="pf-c-title pf-m-2xl">${t`Select users to add`}</h1>
</div> </div>
</section> </section>
<section class="pf-c-modal-box__body pf-c-page__main-section pf-m-light"> <section class="pf-c-modal-box__body pf-m-light">${this.renderTable()}</section>
${this.renderTable()}
</section>
<footer class="pf-c-modal-box__footer"> <footer class="pf-c-modal-box__footer">
<ak-spinner-button <ak-spinner-button
.callAction=${() => { .callAction=${() => {

View File

@ -66,9 +66,7 @@ export class GroupSelectModal extends TableModal<Group> {
<h1 class="pf-c-title pf-m-2xl">${t`Select groups to add user to`}</h1> <h1 class="pf-c-title pf-m-2xl">${t`Select groups to add user to`}</h1>
</div> </div>
</section> </section>
<section class="pf-c-modal-box__body pf-c-page__main-section pf-m-light"> <section class="pf-c-modal-box__body pf-m-light">${this.renderTable()}</section>
${this.renderTable()}
</section>
<footer class="pf-c-modal-box__footer"> <footer class="pf-c-modal-box__footer">
<ak-spinner-button <ak-spinner-button
.callAction=${() => { .callAction=${() => {

View File

@ -30,7 +30,7 @@ export class UserActiveForm extends DeleteForm {
<h1 class="pf-c-title pf-m-2xl">${t`Update ${this.objectLabel}`}</h1> <h1 class="pf-c-title pf-m-2xl">${t`Update ${this.objectLabel}`}</h1>
</div> </div>
</section> </section>
<section class="pf-c-modal-box__body pf-c-page__main-section pf-m-light"> <section class="pf-c-modal-box__body pf-m-light">
<form class="pf-c-form pf-m-horizontal"> <form class="pf-c-form pf-m-horizontal">
<p> <p>
${t`Are you sure you want to update ${this.objectLabel} "${this.obj?.name}"?`} ${t`Are you sure you want to update ${this.objectLabel} "${this.obj?.name}"?`}

View File

@ -62,7 +62,7 @@ export class ConfirmationForm extends ModalButton {
</h1> </h1>
</div> </div>
</section> </section>
<section class="pf-c-modal-box__body pf-c-page__main-section pf-m-light"> <section class="pf-c-modal-box__body pf-m-light">
<form class="pf-c-form pf-m-horizontal"> <form class="pf-c-form pf-m-horizontal">
<slot class="pf-c-content" name="body"></slot> <slot class="pf-c-content" name="body"></slot>
</form> </form>

View File

@ -186,7 +186,7 @@ export class DeleteBulkForm extends ModalButton {
<h1 class="pf-c-title pf-m-2xl">${t`Delete ${this.objectLabel}`}</h1> <h1 class="pf-c-title pf-m-2xl">${t`Delete ${this.objectLabel}`}</h1>
</div> </div>
</section> </section>
<section class="pf-c-modal-box__body pf-c-page__main-section pf-m-light"> <section class="pf-c-modal-box__body pf-m-light">
<form class="pf-c-form pf-m-horizontal"> <form class="pf-c-form pf-m-horizontal">
<p class="pf-c-title"> <p class="pf-c-title">
${t`Are you sure you want to delete ${this.objects.length} ${this.objectLabel}?`} ${t`Are you sure you want to delete ${this.objects.length} ${this.objectLabel}?`}
@ -194,7 +194,7 @@ export class DeleteBulkForm extends ModalButton {
<slot name="notice"></slot> <slot name="notice"></slot>
</form> </form>
</section> </section>
<section class="pf-c-modal-box__body pf-c-page__main-section pf-m-light"> <section class="pf-c-modal-box__body pf-m-light">
<ak-delete-objects-table <ak-delete-objects-table
.objects=${this.objects} .objects=${this.objects}
.usedBy=${this.usedBy} .usedBy=${this.usedBy}

View File

@ -76,7 +76,7 @@ export class DeleteForm extends ModalButton {
<h1 class="pf-c-title pf-m-2xl">${t`Delete ${this.objectLabel}`}</h1> <h1 class="pf-c-title pf-m-2xl">${t`Delete ${this.objectLabel}`}</h1>
</div> </div>
</section> </section>
<section class="pf-c-modal-box__body pf-c-page__main-section pf-m-light"> <section class="pf-c-modal-box__body pf-m-light">
<form class="pf-c-form pf-m-horizontal"> <form class="pf-c-form pf-m-horizontal">
<p>${t`Are you sure you want to delete ${this.objectLabel} ${objName} ?`}</p> <p>${t`Are you sure you want to delete ${this.objectLabel} ${objName} ?`}</p>
</form> </form>
@ -88,9 +88,7 @@ export class DeleteForm extends ModalButton {
return html``; return html``;
} }
return html` return html`
<section <section class="pf-c-modal-box__body pf-m-light">
class="pf-c-modal-box__body pf-c-page__main-section pf-m-light"
>
<form class="pf-c-form pf-m-horizontal"> <form class="pf-c-form pf-m-horizontal">
<p>${t`The following objects use ${objName} `}</p> <p>${t`The following objects use ${objName} `}</p>
<ul class="pf-c-list"> <ul class="pf-c-list">