Skip to content

Commit c0bea2b

Browse files
ihor-romaniukarbrandes
authored andcommitted
fix: unit xblock adaptivity and small visual enhancements
1 parent 2fb4cba commit c0bea2b

File tree

1 file changed

+34
-12
lines changed

1 file changed

+34
-12
lines changed

cms/static/sass/course-unit-mfe-iframe-bundle.scss

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
html {
1010
body {
11-
min-width: 800px;
11+
min-width: 560px;
1212
background: transparent;
1313
&.openassessment_full_height.view-container {
1414
overflow-y: hidden;
@@ -39,11 +39,19 @@ body,
3939
padding: ($baseline * 1.2) ($baseline * 1.2) ($baseline / 1.67);
4040
border-bottom: none;
4141

42-
.header-details .xblock-display-name {
43-
font-size: 22px;
44-
line-height: 28px;
45-
font-weight: 700;
46-
color: $black;
42+
.header-details {
43+
.xblock-display-title {
44+
white-space: nowrap;
45+
overflow: hidden;
46+
text-overflow: ellipsis;
47+
}
48+
49+
.xblock-display-name {
50+
font-size: 22px;
51+
line-height: 28px;
52+
font-weight: 700;
53+
color: $black;
54+
}
4755
}
4856
}
4957

@@ -345,7 +353,6 @@ body,
345353
}
346354

347355
.tip.setting-help {
348-
color: $border-color;
349356
font-size: 14px;
350357
line-height: $base-font-size;
351358
}
@@ -452,6 +459,11 @@ body,
452459

453460
.modal-lg.modal-window.confirm.openassessment_modal_window {
454461
height: 635px;
462+
max-height: 100vh;
463+
464+
.edit-xblock-modal .modal-content {
465+
max-height: 100%;
466+
}
455467
}
456468

457469
// Additions for the xblock editor on the Library Authoring
@@ -672,11 +684,21 @@ body [class*="view-"] .openassessment_editor_buttons.xblock-actions {
672684
max-width: 1200px;
673685
}
674686

675-
.modal-lg.modal-editor .modal-header .editor-modes .action-item {
676-
.editor-button,
677-
.settings-button {
678-
@extend %light-button;
679-
}
687+
.modal-lg.modal-editor {
688+
.modal-header .editor-modes .action-item {
689+
.editor-button,
690+
.settings-button {
691+
@extend %light-button;
692+
}
693+
}
694+
695+
.edit-xblock-modal .modal-content {
696+
max-height: calc(100vh - 144px);
697+
698+
.editor-with-buttons.wrapper-comp-settings .list-input.settings-list {
699+
max-height: calc(100vh - 205px);
700+
}
701+
}
680702
}
681703

682704
.wrapper.wrapper-modal-window .modal-window .modal-actions .action-primary {

0 commit comments

Comments
 (0)