Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/course-unit/CourseUnit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ const CourseUnit = () => {
showPasteUnit={showPasteUnit}
/>
)}
<div className="d-flex align-items-baseline">
<div className="d-flex align-items-start">
<div className="flex-fill">
{currentlyVisibleToStudents && (
<AlertMessage
Expand Down
33 changes: 18 additions & 15 deletions src/plugin-slots/CourseAuthoringUnitSidebarSlot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,31 @@ export const CourseAuthoringUnitSidebarSlot = (
isSplitTestType,
}: CourseAuthoringUnitSidebarSlotProps,
) => (
<PluginSlot
id="org.openedx.frontend.authoring.course_unit_sidebar.v2"
pluginProps={{
blockId,
courseId,
unitTitle,
xBlocks,
readOnly,
isUnitVerticalType,
isSplitTestType,
}}
<div className="pt-1" // This is to fix the vertical alignment of the sidebar
>
<UnitSidebar
legacySidebarProps={{
<PluginSlot
id="org.openedx.frontend.authoring.course_unit_sidebar.v2"
pluginProps={{
blockId,
courseId,
unitTitle,
xBlocks,
readOnly,
isUnitVerticalType,
isSplitTestType,
}}
/>
</PluginSlot>
>
<UnitSidebar
legacySidebarProps={{
unitTitle,
xBlocks,
readOnly,
isUnitVerticalType,
isSplitTestType,
}}
/>
</PluginSlot>
</div>
);

type XBlock = {
Expand Down