Skip to content

Commit 0b2d3ba

Browse files
committed
fix: course unit sidebar slot
1 parent 929ce15 commit 0b2d3ba

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

src/course-unit/CourseUnit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/plugin-slots/CourseAuthoringUnitSidebarSlot/index.tsx

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff 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

3942
type XBlock = {

0 commit comments

Comments
 (0)