Skip to content

Commit

Permalink
Fix tutorial modals silly jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
majdyz committed Oct 11, 2024
1 parent 57b32ab commit d5e5b43
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions autogpt_platform/frontend/src/components/CustomNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ export function CustomNode({

const stripeColor = getPrimaryCategoryColor(data.categories);

const NodeContent = () => (
const nodeContent = () => (
<div
className={`${blockClasses} ${errorClass} ${statusClass}`}
data-id={`custom-node-${id}`}
Expand Down Expand Up @@ -666,7 +666,7 @@ export function CustomNode({
{/* Input Handles */}
{data.uiType !== BlockUIType.NOTE ? (
<div
className="flex items-start justify-between"
className="flex w-fit items-start justify-between"
data-id="input-handles"
>
<div>
Expand Down Expand Up @@ -796,9 +796,7 @@ export function CustomNode({

return (
<ContextMenu.Root>
<ContextMenu.Trigger>
<NodeContent />
</ContextMenu.Trigger>
<ContextMenu.Trigger>{nodeContent()}</ContextMenu.Trigger>
</ContextMenu.Root>
);
}

0 comments on commit d5e5b43

Please sign in to comment.