Skip to content

Commit

Permalink
Fixes #939 Collapsed lists aren't collapsed if board has custom width
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed May 3, 2024
1 parent e6e378a commit c29f82e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Lane/Lane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ function DraggableLaneRaw({
const fullWidth = boardView === 'list' && stateManager.useSetting('full-list-lane-width');
const insertionMethod = stateManager.useSetting('new-card-insertion-method');
const laneStyles = useMemo(
() => (fullWidth || laneWidth ? { width: fullWidth ? '100%' : `${laneWidth}px` } : undefined),
[fullWidth, laneWidth]
() =>
!(isCollapsed && collapseDir === 'horizontal') && (fullWidth || laneWidth)
? { width: fullWidth ? '100%' : `${laneWidth}px` }
: undefined,
[fullWidth, laneWidth, isCollapsed]
);

const elementRef = useRef<HTMLDivElement>(null);
Expand Down

0 comments on commit c29f82e

Please sign in to comment.