File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ const CourseUnit = () => {
333333 showPasteUnit = { showPasteUnit }
334334 />
335335 ) }
336- < div className = "d-flex align-items-baseline " >
336+ < div className = "d-flex align-items-start " >
337337 < div className = "flex-fill" >
338338 { currentlyVisibleToStudents && (
339339 < AlertMessage
Original file line number Diff line number Diff line change @@ -12,28 +12,31 @@ export const CourseAuthoringUnitSidebarSlot = (
1212 isSplitTestType,
1313 } : CourseAuthoringUnitSidebarSlotProps ,
1414) => (
15- < PluginSlot
16- id = "org.openedx.frontend.authoring.course_unit_sidebar.v2"
17- pluginProps = { {
18- blockId,
19- courseId,
20- unitTitle,
21- xBlocks,
22- readOnly,
23- isUnitVerticalType,
24- isSplitTestType,
25- } }
15+ < div className = 'pt-1' // This is to fix the vertical alignment of the sidebar
2616 >
27- < UnitSidebar
28- legacySidebarProps = { {
17+ < PluginSlot
18+ id = "org.openedx.frontend.authoring.course_unit_sidebar.v2"
19+ pluginProps = { {
20+ blockId,
21+ courseId,
2922 unitTitle,
3023 xBlocks,
3124 readOnly,
3225 isUnitVerticalType,
3326 isSplitTestType,
3427 } }
35- />
36- </ PluginSlot >
28+ >
29+ < UnitSidebar
30+ legacySidebarProps = { {
31+ unitTitle,
32+ xBlocks,
33+ readOnly,
34+ isUnitVerticalType,
35+ isSplitTestType,
36+ } }
37+ />
38+ </ PluginSlot >
39+ </ div >
3740) ;
3841
3942type XBlock = {
You can’t perform that action at this time.
0 commit comments