set null, various fixes

This commit is contained in:
Jan Prochazka
2020-05-13 19:42:33 +02:00
parent c49119a4b8
commit d31b756b0e
6 changed files with 76 additions and 14 deletions

View File

@@ -29,14 +29,18 @@ export const VerticalSplitHandle = styled.div`
background-color: #ccc;
height: ${theme.splitter.thickness}px;
cursor: row-resize;
z-index: 1;
&:hover {
background-color: #AAA;
}
`;
export const HorizontalSplitHandle = styled.div`
background-color: #ccc;
width: ${theme.splitter.thickness}px;
cursor: col-resize;
z-index: 1;
&:hover {
background-color: #AAA;
}
`;
const ChildContainer1 = styled.div`
@@ -45,6 +49,7 @@ const ChildContainer1 = styled.div`
// flex-grow: 1;
display: flex;
position: relative;
overflow: hidden;
`;
const ChildContainer2 = styled.div`
@@ -54,6 +59,7 @@ const ChildContainer2 = styled.div`
// flex-grow: 1;
display: flex;
position: relative;
overflow: hidden;
`;
export function useSplitterDrag(axes, onResize) {