allotment icon indicating copy to clipboard operation
allotment copied to clipboard

Separator shown with only one visible pane

Open elliotfklein opened this issue 1 year ago • 1 comments

Repro: https://codesandbox.io/s/infallible-rumple-x4hhfk?file=/src/App.tsx

If you have two panes and the first one has visible={false}, the second pane will still show a separator on the left side.

At first glance, I think the issue might be with the :not(:first-child) selector on .splitViewView::before — because there is an invisible pane before the visible pane, the visible pane is not the first child.

I don't think e.g. :first-of-type would work here either, this might need to be handled with JS.

Please LMK if I can help here somehow — thanks! 🙂

elliotfklein avatar Aug 24 '23 04:08 elliotfklein

For my use-case I like that the sepearator is visible to re-open a pane again. But what troubles me is that it only works when the right pane is maximized, not when the left is maximized. Then the separator is not visible, but you can still click on it and draw it.

MainzerKaiser avatar Sep 21 '23 13:09 MainzerKaiser