mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00: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>
|
||||
);
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
export { PageTree } from './page-tree';
|
||||
export { PageTree } from './PageTree';
|
||||
export { usePageTree } from './use-page-tree';
|
||||
|
||||
export * from './types';
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
import style9 from 'style9';
|
||||
|
||||
import { DndTree } from './DndTree';
|
||||
import { useDndTreeAutoUpdate } from './use-page-tree';
|
||||
|
||||
const styles = style9.create({
|
||||
root: {
|
||||
minWidth: 160,
|
||||
maxWidth: 260,
|
||||
marginLeft: 18,
|
||||
marginRight: 6,
|
||||
},
|
||||
});
|
||||
|
||||
export const PageTree = () => {
|
||||
useDndTreeAutoUpdate();
|
||||
return (
|
||||
<div className={styles('root')}>
|
||||
<DndTree collapsible removable />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user