Skip to content

Commit e38a7ce

Browse files
authored
fix: prevent .modal-fullscreen cascading flex boxes (#38431)
* fix: prevent .modal-fullscreen cascading flex boxes * fix: fix fullscreen for word cloud and lti consumer
1 parent b041c0a commit e38a7ce

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -406,43 +406,43 @@
406406
display: flex;
407407
flex-direction: column;
408408

409-
410-
// Set the components to flex so that they can grow
411-
div,
412-
form {
409+
div.edit-xblock-modal {
413410
display: flex;
414411
flex-direction: column;
415412
flex-grow: 1;
416413

417-
// Set the header to not grow
418-
header,
419-
&.modal-header {
420-
flex-grow: 0;
421-
}
414+
div.modal-content {
415+
display: flex;
416+
flex-direction: column;
417+
flex-grow: 1;
418+
padding: 0;
422419

423-
}
420+
div.xblock-editor {
421+
display: flex;
422+
flex-direction: column;
423+
flex-grow: 1;
424424

425-
ul {
426-
flex-grow: 1;
425+
div.xblock-studio_view {
426+
display: flex;
427+
flex-direction: column;
428+
flex-grow: 1;
429+
}
427430

428-
// Reset the divs inside the ul to preserve previous styling
429-
div,
430-
form {
431-
display: unset;
432-
flex-direction: unset;
433-
flex-grow: unset;
434-
}
435-
}
431+
div.editor-with-buttons {
432+
display: flex;
433+
flex-direction: column;
434+
flex-grow: 1;
435+
margin-bottom: 0;
436436

437-
&.modal-editor {
438-
.modal-content {
439-
padding: 0px;
437+
ul.settings-list {
438+
flex-grow: 1;
439+
}
440+
}
441+
}
440442
}
441443
}
442444
}
443445

444-
445-
446446
// specific modal overrides
447447
// ------------------------
448448

0 commit comments

Comments
 (0)