Merge pull request #938 from patriceac/patch-46

Make the image editor scrollable as needed
This commit is contained in:
cmdr2 2023-03-14 10:35:59 +05:30 committed by GitHub
commit 995bdc77b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,16 +149,21 @@
pointer-events: none; pointer-events: none;
} }
.image-editor-popup { .image-editor-popup {
--popup-margin: 16px; --popup-margin: 16px;
--popup-padding: 24px; --popup-padding: 24px;
} }
@media screen and (min-width: 700px) {
.image-editor-popup {
overflow-y: auto;
}
}
.image-editor-popup > div { .image-editor-popup > div {
margin: var(--popup-margin); margin: var(--popup-margin);
padding: var(--popup-padding); padding: var(--popup-padding);
min-height: calc(100vh - (2 * var(--popup-margin))); min-height: calc(99h - (2 * var(--popup-margin)));
max-width: none; max-width: none;
min-width: fit-content; min-width: fit-content;
} }
@ -186,7 +191,7 @@
.image-editor-popup > div > div { .image-editor-popup > div > div {
min-height: calc(100vh - (2 * var(--popup-margin)) - (2 * var(--popup-padding))); min-height: calc(99vh - (2 * var(--popup-margin)) - (2 * var(--popup-padding)));
} }
.inpainter .image_editor_color { .inpainter .image_editor_color {