From 8390b22ff778d75fc50526e8f2e97b0baee46628 Mon Sep 17 00:00:00 2001 From: Paolo Flores Date: Sun, 1 Dec 2024 22:22:34 -0500 Subject: [PATCH] temporal fix for galleries --- .../pages/Editor/components/blocks/PictureSlot.tsx | 8 ++++++-- app/src/pages/Gallery3D/index.tsx | 14 +++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/app/src/pages/Editor/components/blocks/PictureSlot.tsx b/app/src/pages/Editor/components/blocks/PictureSlot.tsx index a1561f1..fc254f6 100644 --- a/app/src/pages/Editor/components/blocks/PictureSlot.tsx +++ b/app/src/pages/Editor/components/blocks/PictureSlot.tsx @@ -62,11 +62,15 @@ export const PictureSlot = memo(({ idRef, v, res, props }: PictureSlotProps) => imgOffsetY = frameHeight / 2 - imgHeight / 2; } + // const changedX = -pos[0] + (pos[0] > 0 ? frameWidth : -frameWidth); + // const changedX = -pos[0] - frameWidth; + const changedX = pos[0]; + return ( { /* Base color and border */} { /* Rendered image */} { image && { ) } - + { + !loading && ( + + ) + } {