diff --git a/apps/web/src/components/split-pane/index.tsx b/apps/web/src/components/split-pane/index.tsx index 33b608978..1c91c6251 100644 --- a/apps/web/src/components/split-pane/index.tsx +++ b/apps/web/src/components/split-pane/index.tsx @@ -308,6 +308,8 @@ export const SplitPane = React.forwardRef< const nextPane = paneSizes.current[i + 1]; const rightBorder = sashPosSizes.current[i + 2]; + if (currentPane.collapsed) currentPane.collapsed = false; + if (currentPane.size + distanceX >= rightBorder) distanceX = rightBorder - currentPane.size;