mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 17:12:38 +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}
|
disableEdit={readOnly}
|
||||||
{...controllers}
|
{...controllers}
|
||||||
width={width}
|
width={width}
|
||||||
height={height}
|
height={rootElement.current.clientHeight}
|
||||||
ref={treeApiRef}
|
ref={treeApiRef}
|
||||||
openByDefault={false}
|
openByDefault={false}
|
||||||
disableMultiSelection={true}
|
disableMultiSelection={true}
|
||||||
|
|||||||
@ -3,10 +3,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.treeContainer {
|
.treeContainer {
|
||||||
display: flex;
|
height: 100%;
|
||||||
height: 68vh;
|
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
|
> div, > div > .tree {
|
||||||
|
height: 100% !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.node {
|
.node {
|
||||||
|
|||||||
@ -18,6 +18,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sectionPages {
|
||||||
|
margin-bottom: 0;
|
||||||
|
overflow-y: hidden;
|
||||||
|
|
||||||
|
.pages {
|
||||||
|
height: 100%;
|
||||||
|
padding-bottom: 26px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.menuItems {
|
.menuItems {
|
||||||
padding-left: calc(var(--mantine-spacing-md) - var(--mantine-spacing-xs));
|
padding-left: calc(var(--mantine-spacing-md) - var(--mantine-spacing-xs));
|
||||||
padding-right: calc(var(--mantine-spacing-md) - var(--mantine-spacing-xs));
|
padding-right: calc(var(--mantine-spacing-md) - var(--mantine-spacing-xs));
|
||||||
|
|||||||
@ -134,7 +134,7 @@ export function SpaceSidebar() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={classes.section}>
|
<div className={[classes.section, classes.sectionPages].join(' ')}>
|
||||||
<Group className={classes.pagesHeader} justify="space-between">
|
<Group className={classes.pagesHeader} justify="space-between">
|
||||||
<Text size="xs" fw={500} c="dimmed">
|
<Text size="xs" fw={500} c="dimmed">
|
||||||
Pages
|
Pages
|
||||||
|
|||||||
Reference in New Issue
Block a user