feat(canvas): refine multi-image generation to improve slot display and compact collapsed state

This commit is contained in:
HouYunFei
2026-08-06 11:39:00 +08:00
parent 58719739c7
commit feb582bba8
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -775,16 +775,16 @@ function BatchFrame({ batchCount, batchExpanded, onToggleBatch, children }: { ba
>
{isBatchRoot ? (
<div className="pointer-events-none absolute inset-0 overflow-visible">
{Array.from({ length: Math.min(batchCount - 1, 5) }).map((_, index) => (
{Array.from({ length: Math.min(batchCount - 1, 3) }).map((_, index) => (
<div
key={index}
className="absolute rounded-[inherit] border shadow-[0_14px_34px_rgba(68,64,60,.16)] transition-all duration-300 group-hover/batch:translate-x-2"
className="absolute rounded-[inherit] border shadow-[0_10px_24px_rgba(68,64,60,.12)] transition-all duration-300 group-hover/batch:translate-x-1"
style={{
inset: 0,
background: `linear-gradient(135deg, ${theme.node.panel}, ${theme.node.fill})`,
borderColor: theme.node.stroke,
opacity: batchExpanded ? 0 : 1,
transform: `translate(${30 + index * 14}px, ${12 + index * 8}px) rotate(${5 + index * 3}deg)`,
transform: `translate(${10 + index * 6}px, ${4 + index * 3}px) rotate(${1.5 + index}deg)`,
zIndex: -index - 1,
}}
/>