fix: Repair blend mode stacking context in canvas and display mode in live preview

This commit is contained in:
2026-06-02 23:27:50 -05:00
parent c90628efdf
commit cac5bd9faf
2 changed files with 4 additions and 5 deletions
@@ -222,6 +222,7 @@ export const BuilderCanvas: React.FC = () => {
// z-index from array position: index 0 = back, last = front
// Dragging/selected get temporary boost to stay on top during interaction
zIndex: isDraggingField ? 1000 : isSelected ? 999 : idx + 1,
mixBlendMode: field.style.blendMode && field.style.blendMode !== 'normal' ? field.style.blendMode as any : undefined,
}}
>
{/* Field box */}
@@ -367,10 +368,7 @@ const BrandVariableContent: React.FC<{ field: TemplateField; designMD: DesignMD;
src={designMD.logoUrl}
alt="Logo"
className="max-w-full max-h-full object-contain pointer-events-none p-1"
style={{
opacity: (field.style.opacity ?? 100) / 100,
mixBlendMode: field.style.blendMode as any,
}}
style={{ opacity: (field.style.opacity ?? 100) / 100 }}
/>
);
}
@@ -391,7 +389,6 @@ const BrandVariableContent: React.FC<{ field: TemplateField; designMD: DesignMD;
objectFit: objectFit as any,
backgroundColor: objectFit === 'contain' ? (bgColor || 'transparent') : 'transparent',
opacity: (field.style.opacity ?? 100) / 100,
mixBlendMode: field.style.blendMode as any,
}}
muted
loop