fix(ui): render block handles underneath current block content (#3611)

* fix(ui): render block handles underneath current block content

* fix(ui): use z-[0] instead of z-[-1] for handle z-index
This commit is contained in:
Waleed
2026-03-16 15:13:40 -07:00
committed by GitHub
parent b0870f4afa
commit 738d51af0d
@@ -1086,7 +1086,7 @@ export const WorkflowBlock = memo(function WorkflowBlock({
* Reusable styles and positioning for Handle components.
*/
const getHandleClasses = (position: 'left' | 'right' | 'top' | 'bottom', isError = false) => {
const baseClasses = '!z-[10] !cursor-crosshair !border-none !transition-[colors] !duration-150'
const baseClasses = '!z-[0] !cursor-crosshair !border-none !transition-[colors] !duration-150'
const colorClasses = isError ? '!bg-[var(--text-error)]' : '!bg-[var(--workflow-edge)]'
const positionClasses = {