fix ui
This commit is contained in:
parent
95ce536cf7
commit
359aad783c
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
|
@ -28,7 +28,21 @@ export const EdTreeBody = () => {
|
|||
tree = p.page.tree;
|
||||
}
|
||||
|
||||
if (p.page.tree.length === 0) return <div>No Item </div>;
|
||||
if (p.page.tree.length === 0)
|
||||
return (
|
||||
<div className="flex py-[100px] select-none justify-center flex-1">
|
||||
<div className="flex flex-col">
|
||||
<img
|
||||
draggable={false}
|
||||
src="/img/empty.png"
|
||||
className={css`
|
||||
width: 50px;
|
||||
`}
|
||||
/>
|
||||
<div className="mt-[20px]">No Item</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<TypedTree
|
||||
tree={tree}
|
||||
|
|
@ -54,7 +68,7 @@ export const EdTreeBody = () => {
|
|||
};
|
||||
|
||||
const treeClasses = {
|
||||
container: "flex flex-col",
|
||||
container: "flex flex-col flex-1",
|
||||
dropTarget: "drop-target",
|
||||
placeholder: "placeholder",
|
||||
draggingSource: css`
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export const EdTree = () => {
|
|||
<div className="flex flex-col min-w-[300px] relative border-r">
|
||||
<EdTreeSearch />
|
||||
<div className="tree-body flex relative flex-1 overflow-y-auto overflow-x-hidden">
|
||||
<div className="absolute inset-0">
|
||||
<div className="absolute inset-0 flex">
|
||||
<DndProvider backend={MultiBackend} options={getBackendOptions()}>
|
||||
<EdTreeBody />
|
||||
</DndProvider>
|
||||
|
|
|
|||
Loading…
Reference in New Issue