@morphika/andami 0.5.9 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -374,12 +374,19 @@ export default function SectionV2Renderer({ section, pageEnterAnimation, fillHei
|
|
|
374
374
|
</section>
|
|
375
375
|
);
|
|
376
376
|
|
|
377
|
-
// Section-level enter animation (without stagger — wraps entire section)
|
|
377
|
+
// Section-level enter animation (without stagger — wraps entire section).
|
|
378
|
+
// When fillHeight is on, propagate height + flex through the animation
|
|
379
|
+
// wrapper so the section + grid + column can stretch to the slide's 100vh.
|
|
380
|
+
// Without this, the wrapper's natural height (= content) collapses the chain
|
|
381
|
+
// and `align_v` has no spare space to apply.
|
|
378
382
|
let result: React.ReactNode = sectionContent;
|
|
379
383
|
|
|
380
384
|
if (hasAnimation && !staggerEnabled && resolvedSectionEnter) {
|
|
381
385
|
result = (
|
|
382
|
-
<EnterAnimationWrapper
|
|
386
|
+
<EnterAnimationWrapper
|
|
387
|
+
config={resolvedSectionEnter}
|
|
388
|
+
style={fillHeight ? { height: "100%", display: "flex", flexDirection: "column" } : undefined}
|
|
389
|
+
>
|
|
383
390
|
{result}
|
|
384
391
|
</EnterAnimationWrapper>
|
|
385
392
|
);
|
|
@@ -502,11 +502,21 @@ export default function SectionV2Column({
|
|
|
502
502
|
)}
|
|
503
503
|
</SortableContext>
|
|
504
504
|
|
|
505
|
-
{/* "+" add block button below blocks
|
|
505
|
+
{/* "+" add block button below blocks.
|
|
506
|
+
When the column has a vertical alignment (center / flex-end via
|
|
507
|
+
colJustify), this drop zone is anchored absolutely to the bottom of
|
|
508
|
+
the column so its `flex: 1` doesn't eat the spare space and break
|
|
509
|
+
the column's `justify-content`. Without alignment (top default), it
|
|
510
|
+
keeps the legacy `flex: 1` so the entire empty area below the last
|
|
511
|
+
block remains a generous drop target. */}
|
|
506
512
|
{/* Hidden for section-level blocks (e.g. projectGridBlock) that own the full column */}
|
|
507
513
|
{hasBlocks && !singleSectionBlock && (
|
|
508
514
|
<div
|
|
509
|
-
className={`flex
|
|
515
|
+
className={`flex items-center justify-center z-[3] transition-all ${
|
|
516
|
+
colJustify
|
|
517
|
+
? "absolute left-0 right-0 bottom-0"
|
|
518
|
+
: "flex-1 min-h-0"
|
|
519
|
+
} ${
|
|
510
520
|
showChrome ? "opacity-100" : showFaintOutline ? "opacity-30" : "opacity-0 pointer-events-none"
|
|
511
521
|
}`}
|
|
512
522
|
style={{ minHeight: 24 }}
|
package/lib/version.ts
CHANGED
package/package.json
CHANGED