Revert canvas parent z-index to avoid masking sidebar

Keep only the timeline z-index: 1000 bump. Setting z-index on the
canvas parent would create a stacking context that paints over the
sidebar panel, blocking interaction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 00:25:04 +01:00
parent 862045ecf1
commit 0219d86301

View File

@@ -1413,15 +1413,11 @@ function buildTimeline() {
return;
}
// Ensure parent is positioned so absolute children work, and
// sits above the ComfyUI sidebar (z-index: 10) in the stacking order
// Ensure parent is positioned so absolute children work
const parentPos = getComputedStyle(canvasParent).position;
if (parentPos === "static") {
canvasParent.style.position = "relative";
}
if (!canvasParent.style.zIndex) {
canvasParent.style.zIndex = "20";
}
// Create root element
const bar = document.createElement("div");