From 045f5f20483fd6d25a41233101a8fa1102deb28e Mon Sep 17 00:00:00 2001 From: locphamtran Date: Thu, 10 Sep 2026 12:31:54 +0700 Subject: [PATCH] Keep a thumbnail of the finished export in library mode --- src/components/CameraControls.tsx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/components/CameraControls.tsx b/src/components/CameraControls.tsx index a8e0ad2..76b95fa 100644 --- a/src/components/CameraControls.tsx +++ b/src/components/CameraControls.tsx @@ -77,9 +77,24 @@ export default function CameraControls({ Preview doubles as "back to camera" while in library mode; the flip control is hidden then. Anchored to the right edge inside the flex-1 side zone; small gap keeps it clear of the preview thumbnail without - drifting toward the shutter. */} + drifting toward the shutter. + + Exports land in the session library, so once library mode has one its + thumbnail takes the slot the flip control would have used — that keeps + "back to camera" untouched while the finished photo stays reachable + (review or trash) after the auto-opened viewer is closed. */} - {!isLibraryMode && onFlipCamera && ( + {isLibraryMode ? ( + lastPhotoUri ? ( + + + + ) : null + ) : onFlipCamera ? ( - )} + ) : null}