mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
fixed panel stacking
This commit is contained in:
parent
8b0a7e3681
commit
86622d6aa6
1 changed files with 14 additions and 15 deletions
|
@ -47,7 +47,7 @@ const NodePanel: FC<IProps> = memo(
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.place} ref={ref}>
|
<div className={styles.place} ref={ref}>
|
||||||
{stack ? (
|
{stack &&
|
||||||
createPortal(
|
createPortal(
|
||||||
<NodePanelInner
|
<NodePanelInner
|
||||||
node={node}
|
node={node}
|
||||||
|
@ -62,8 +62,8 @@ const NodePanel: FC<IProps> = memo(
|
||||||
stack
|
stack
|
||||||
/>,
|
/>,
|
||||||
document.body
|
document.body
|
||||||
)
|
)}
|
||||||
) : (
|
|
||||||
<NodePanelInner
|
<NodePanelInner
|
||||||
node={node}
|
node={node}
|
||||||
onEdit={onEdit}
|
onEdit={onEdit}
|
||||||
|
@ -75,7 +75,6 @@ const NodePanel: FC<IProps> = memo(
|
||||||
can_star={can_star}
|
can_star={can_star}
|
||||||
is_loading={is_loading}
|
is_loading={is_loading}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue