Skip to content

Commit 553df2b

Browse files
authored
fix: add scroll to modal content when fullscreen (#38859) (#38893)
Studio modal doesn't allow authors to scroll when content is longer than the screen height, so this commit adds a max-height based on screen height. (cherry picked from commit c82accb)
1 parent 872fd12 commit 553df2b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cms/static/sass/elements/_modal-window.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,13 +409,16 @@
409409
div.edit-xblock-modal {
410410
display: flex;
411411
flex-direction: column;
412+
min-height: 0;
412413
flex-grow: 1;
413414

414415
div.modal-content {
415416
display: flex;
416417
flex-direction: column;
417-
flex-grow: 1;
418+
flex: 1;
419+
min-height: 0;
418420
padding: 0;
421+
overflow: auto;
419422

420423
div.xblock-editor {
421424
display: flex;

0 commit comments

Comments
 (0)