From ed80617f02b4d0d88d22da48a045ed667f4d6c1c Mon Sep 17 00:00:00 2001 From: Wassim SAMAD Date: Mon, 27 Jul 2026 14:50:35 -0400 Subject: [PATCH] feat(editor): hide crop switcher when host preselects a capture crop Co-Authored-By: Claude Fable 5 --- .../src/components/editor/snapshot-capture-overlay.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/components/editor/snapshot-capture-overlay.tsx b/packages/editor/src/components/editor/snapshot-capture-overlay.tsx index 9b6d0068e..dac3f2ef3 100644 --- a/packages/editor/src/components/editor/snapshot-capture-overlay.tsx +++ b/packages/editor/src/components/editor/snapshot-capture-overlay.tsx @@ -109,6 +109,9 @@ export function SnapshotCaptureOverlay({ projectId }: { projectId: string }) { const isPreset = captureMode.mode === 'preset' const requestedCrop = captureMode.mode === 'standard' ? captureMode.crop : undefined const requestedAspect = captureMode.mode === 'standard' ? captureMode.standardAspect : undefined + // A host-preselected crop means the host needs that exact output shape + // (e.g. the publish-cover capture) — hide the crop/aspect switcher. + const isCropLocked = isPreset || requestedCrop !== undefined const [mode, setMode] = useState('standard') const [standardAspect, setStandardAspect] = useState('16:9') @@ -538,7 +541,7 @@ export function SnapshotCaptureOverlay({ projectId }: { projectId: string }) { {/* Bottom-center: crop switcher, caption + shutter */}
- {!isPreset && ( + {!isCropLocked && (
{/* Clicking Standard while it's active opens the aspect picker */}