Skip to content

Commit 177802b

Browse files
fix: unit footer overflow issue
1 parent 5e312c5 commit 177802b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎src/course-outline/OutlineNode.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,12 @@ const OutlineNode = ({
347347
readyToSync={blk.upstreamInfo?.readyToSync}
348348
/>
349349
<div
350-
className={levelConfig.contentClass}
350+
className={classNames(levelConfig.contentClass, {
351+
// `item-children` pulls the content 2.75rem to the right so it spans
352+
// under the drag handle column. Without the handle there is no column
353+
// to fill, and the negative margin would overflow the card.
354+
'item-children': isDraggable,
355+
})}
351356
data-testid={levelConfig.contentTestId}
352357
onClick={(e) => onClickCard(e, false)}
353358
>

‎src/course-outline/outline-level.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const LEVEL_CONFIG: Record<Depth, LevelConfig> = {
8989
},
9090
1: {
9191
name: 'subsection',
92-
contentClass: 'subsection-card__content item-children',
92+
contentClass: 'subsection-card__content',
9393
contentTestId: 'subsection-card__content',
9494
childContainerClass: 'subsection-card__units',
9595
childContainerTestId: 'subsection-card__units',

0 commit comments

Comments
 (0)