Skip to content

Commit

Permalink
fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Sep 24, 2024
1 parent 6f08bca commit 946d013
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apps/web/src/circuit/components/Node/Node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ export const Node = observer(
);

const nodeLoadingClassNames = clsx(
'absolute left-5 top-5 flex flex-row ',
{
hidden: nodeLoading,
block: nodeLoading
}
'absolute left-5 top-5 flex flex-row '
);

const nodeHeaderWrapperClassNames = clsx(
Expand Down Expand Up @@ -174,7 +170,9 @@ export const Node = observer(
>
<div className={nodeHeaderWrapperClassNames}>
<div className={nodeLoadingClassNames}>
<Spinner className="border-slate-300 !h-3 !w-3" />
{nodeLoading && (
<Spinner className="border-slate-300 !h-3 !w-3" />
)}
</div>
{/** @ts-ignore */}
<span>{node.constructor.displayName}</span>
Expand Down

0 comments on commit 946d013

Please sign in to comment.