mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
fix(select): select rect position
This commit is contained in:
19
libs/components/layout/src/workspace-sidebar/page-tree/PageTree.tsx
Executable file
19
libs/components/layout/src/workspace-sidebar/page-tree/PageTree.tsx
Executable file
@@ -0,0 +1,19 @@
|
||||
import { styled } from '@toeverything/components/ui';
|
||||
import { DndTree } from './DndTree';
|
||||
import { useDndTreeAutoUpdate } from './use-page-tree';
|
||||
|
||||
const Root = styled('div')({
|
||||
minWidth: 160,
|
||||
maxWidth: 260,
|
||||
marginLeft: 18,
|
||||
marginRight: 6,
|
||||
});
|
||||
|
||||
export const PageTree = () => {
|
||||
useDndTreeAutoUpdate();
|
||||
return (
|
||||
<Root>
|
||||
<DndTree collapsible removable />
|
||||
</Root>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user