web/admin: rework scrolling in modals, ensure overlay covers everything

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-10-16 16:02:51 +02:00
parent dc4bdc17d9
commit d6a14019c6
3 changed files with 1 additions and 9 deletions

View file

@ -106,11 +106,6 @@ html > form > input {
margin-bottom: 6px;
}
/* Fix scrolling in modals in low-height viewports on Chromium */
.pf-c-modal-box__body {
overflow: hidden;
}
@media (prefers-color-scheme: dark) {
.ak-static-page h1 {
color: var(--ak-dark-foreground);

View file

@ -22,9 +22,6 @@ export const MODAL_BUTTON_STYLES = css`
text-align: left;
font-size: var(--pf-global--FontSize--md);
}
.pf-c-modal-box.pf-m-lg {
overflow-y: auto;
}
.pf-c-modal-box > .pf-c-button + * {
margin-right: 0;
}

View file

@ -65,7 +65,7 @@ export class ModalForm extends ModalButton {
</h1>
</div>
</section>
<section class="pf-c-modal-box__body pf-c-page__main-section pf-m-light">
<section class="pf-c-modal-box__body">
<slot name="form"></slot>
</section>
<footer class="pf-c-modal-box__footer">