Skip to content

Commit

Permalink
fix: External Portal node graph styling (#4004)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Nov 25, 2024
1 parent a55127f commit 7094c52
Showing 1 changed file with 20 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ const ExternalPortal: React.FC<any> = (props) => {
return (
<>
<Hanger hidden={isDragging} before={props.id} parent={parent} />
<Box sx={{ width: "max-content" }}>
<li className={classNames("card", "portal", { isDragging })}>
<li ref={ref}>
<Box className={classNames("card", "portal", { isDragging })}>
<Link href={`/${href}`} prefetch={false} ref={drag}>
<span>{href}</span>
</Link>
<Link href={editHref} prefetch={false} className="portalMenu">
<MoreVert titleAccess="Edit Portal" />
</Link>
</li>
</Box>
{props.tags?.map((tag: NodeTag) => <Tag tag={tag} key={tag} />)}
</Box>
</li>
</>
);
};
Expand Down Expand Up @@ -141,19 +141,22 @@ const InternalPortal: React.FC<any> = (props) => {
return (
<>
<Hanger hidden={isDragging} before={props.id} parent={parent} />
<li className={classNames("card", "portal", { isDragging })}>
<Link
href={href}
prefetch={false}
ref={drag}
onContextMenu={handleContext}
>
{Icon && <Icon />}
<span>{props.data.text}</span>
</Link>
<Link href={editHref} prefetch={false} className="portalMenu">
<MoreVert titleAccess="Edit Portal" />
</Link>
<li ref={ref}>
<Box className={classNames("card", "portal", { isDragging })}>
<Link
href={href}
prefetch={false}
ref={drag}
onContextMenu={handleContext}
>
{Icon && <Icon />}
<span>{props.data.text}</span>
</Link>
<Link href={editHref} prefetch={false} className="portalMenu">
<MoreVert titleAccess="Edit Portal" />
</Link>
</Box>
{props.tags?.map((tag: NodeTag) => <Tag tag={tag} key={tag} />)}
</li>
</>
);
Expand Down

0 comments on commit 7094c52

Please sign in to comment.