Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit bf9c234

Browse files
authored
fix: denest buttons in job node (#110)
1 parent 8dad49d commit bf9c234

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/atoms/nodes/JobNode.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const JobNode: React.FunctionComponent<NodeProps & { data: WorkflowJob }> = (
137137
/>
138138
</button>
139139

140-
<button
140+
<div
141141
className={`p-2 bg-white node flex flex-row text-black rounded-md border cursor-pointer
142142
${
143143
(hovering['node'] && !hovering['remove']) ||
@@ -148,10 +148,10 @@ const JobNode: React.FunctionComponent<NodeProps & { data: WorkflowJob }> = (
148148
ref={nodeRef}
149149
{...trackHovering(['node'], ['node'])}
150150
>
151-
<div className="flex w-full">
151+
<button className="flex w-full">
152152
<JobIcon className="w-5 mr-2" />
153153
{props.data.parameters?.name || props.data.job.name}
154-
</div>
154+
</button>
155155
<button
156156
className={`my-auto
157157
opacity-${hovering['node'] ? 100 : 0}
@@ -166,7 +166,7 @@ const JobNode: React.FunctionComponent<NodeProps & { data: WorkflowJob }> = (
166166
color={hovering['remove'] ? 'red' : '#AAAAAA'}
167167
/>
168168
</button>
169-
</button>
169+
</div>
170170

171171
<button
172172
className={`opacity-${

0 commit comments

Comments
 (0)