fix(editor): render the palette above the loop-badge overlay

This commit is contained in:
Julien Calixte
2026-06-20 10:13:21 +02:00
parent cd276d9d2a
commit 32498d51d1

View File

@@ -20,7 +20,6 @@ import {
ErrorCode, ErrorCode,
isErrorOfType, isErrorOfType,
type OnConnectStartParams, type OnConnectStartParams,
Panel,
useVueFlow, useVueFlow,
VueFlow, VueFlow,
type XYPosition, type XYPosition,
@@ -341,10 +340,6 @@ onBeforeUnmount(() => window.removeEventListener("keydown", onKeydown))
<Background :gap="20" pattern-color="#d1d5db" /> <Background :gap="20" pattern-color="#d1d5db" />
<Controls position="bottom-left" :show-interactive="false" /> <Controls position="bottom-left" :show-interactive="false" />
<Panel position="top-left">
<Palette @add="addNode" />
</Panel>
<template #node-stock="nodeProps"> <template #node-stock="nodeProps">
<StockNode v-bind="nodeProps" /> <StockNode v-bind="nodeProps" />
</template> </template>
@@ -363,6 +358,10 @@ onBeforeUnmount(() => window.removeEventListener("keydown", onKeydown))
</template> </template>
</VueFlow> </VueFlow>
<!-- Chrome lives at this level, above the badge overlay: Vue Flow's pane is a
z-index:0 stacking context, so a Panel inside it would be painted under
the screen-space R/B badges (which sit on the canvas, over loop centres). -->
<Palette class="absolute top-3 left-3 z-20" @add="addNode" />
<LoopOverlay /> <LoopOverlay />
<GlossPanel /> <GlossPanel />
</div> </div>