Skip to content

Commit

Permalink
add check to TaskPill
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Nov 12, 2024
1 parent d68324c commit 25beed5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/module/src/pipelines/components/nodes/TaskPill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
const actionSpace = actionIcon && actionSize ? actionSize.width + paddingX : 0;

const contextStartX = actionStartX + actionSpace;
const contextSpace = onContextMenu && contextSize ? contextSize.width + paddingX / 2 : 0;
const contextSpace = !hideContextMenuKebab && onContextMenu && contextSize ? contextSize.width + paddingX / 2 : 0;

const pillWidth = contextStartX + contextSpace + paddingX / 2;

Expand Down Expand Up @@ -199,6 +199,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
badge,
actionIcon,
actionSize,
hideContextMenuKebab,
onContextMenu,
contextSize,
verticalLayout,
Expand Down

0 comments on commit 25beed5

Please sign in to comment.