mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 04:01:10 +10:00
Fix sidebar responsivity (#453)
* navbar height fix. has to be cleaned up * use parent height for tree * cleanups
This commit is contained in:
@ -197,7 +197,7 @@ export default function SpaceTree({ spaceId, readOnly }: SpaceTreeProps) {
|
||||
disableEdit={readOnly}
|
||||
{...controllers}
|
||||
width={width}
|
||||
height={height}
|
||||
height={rootElement.current.clientHeight}
|
||||
ref={treeApiRef}
|
||||
openByDefault={false}
|
||||
disableMultiSelection={true}
|
||||
|
||||
@ -3,10 +3,12 @@
|
||||
}
|
||||
|
||||
.treeContainer {
|
||||
display: flex;
|
||||
height: 68vh;
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
min-width: 0;
|
||||
|
||||
> div, > div > .tree {
|
||||
height: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
.node {
|
||||
|
||||
Reference in New Issue
Block a user