@bycrux/editor 0.5.0 → 0.5.1
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.
- package/package.json +1 -1
- package/src/video/VideoEditor.tsx +15 -4
package/package.json
CHANGED
|
@@ -388,7 +388,9 @@ function ReviewSurface<P extends Project>({
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
return (
|
|
391
|
-
<div className="flex flex-1 overflow-hidden">
|
|
391
|
+
<div className="flex flex-col flex-1 overflow-hidden">
|
|
392
|
+
{/* Work area — editor body + version rail, side by side */}
|
|
393
|
+
<div className="flex flex-1 overflow-hidden min-h-0">
|
|
392
394
|
{/* Main: preview + timeline */}
|
|
393
395
|
<div className="flex flex-col flex-1 overflow-hidden">
|
|
394
396
|
<div className="flex-1 flex items-center justify-center bg-black overflow-hidden p-2">
|
|
@@ -473,8 +475,8 @@ function ReviewSurface<P extends Project>({
|
|
|
473
475
|
</div>
|
|
474
476
|
</div>
|
|
475
477
|
|
|
476
|
-
{/* Right
|
|
477
|
-
{(adapter.listVersionHistory || slots?.
|
|
478
|
+
{/* Right rail — version history + run history slot */}
|
|
479
|
+
{(adapter.listVersionHistory || slots?.runHistory) && (
|
|
478
480
|
<div className="w-48 shrink-0 border-l border-gray-200 dark:border-gray-800 bg-gray-50 dark:bg-gray-950 flex flex-col overflow-hidden">
|
|
479
481
|
{adapter.listVersionHistory && (
|
|
480
482
|
<VersionPanel versions={versions} restoring={restoring} onRestore={handleRestoreVersion} />
|
|
@@ -483,7 +485,16 @@ function ReviewSurface<P extends Project>({
|
|
|
483
485
|
RunSnapshot / project.history are host-only types — the package never
|
|
484
486
|
reads them. When absent nothing is rendered. */}
|
|
485
487
|
{slots?.runHistory}
|
|
486
|
-
|
|
488
|
+
</div>
|
|
489
|
+
)}
|
|
490
|
+
</div>
|
|
491
|
+
|
|
492
|
+
{/* Project media / assets — full-width region stacked BELOW the editor,
|
|
493
|
+
mirroring CarouselEditor's layout (was previously crammed into the
|
|
494
|
+
narrow right rail). The host's panel manages its own scroll. */}
|
|
495
|
+
{slots?.assetsPanel && (
|
|
496
|
+
<div className="shrink-0 border-t border-gray-200 dark:border-gray-800 w-full flex flex-col max-h-[45%] overflow-hidden">
|
|
497
|
+
{slots.assetsPanel}
|
|
487
498
|
</div>
|
|
488
499
|
)}
|
|
489
500
|
|