From 002124b1610b14c8364921a2d55496c13e46431d Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 13 Mar 2026 21:09:05 -0500 Subject: [PATCH] Fix floating thumbnail on large screens --- src/components/AppGrid.tsx | 2 +- src/photo/form/PhotoForm.tsx | 75 ++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 39 deletions(-) diff --git a/src/components/AppGrid.tsx b/src/components/AppGrid.tsx index 70aacb8a..42e62a8e 100644 --- a/src/components/AppGrid.tsx +++ b/src/components/AppGrid.tsx @@ -41,7 +41,7 @@ export default function AppGrid({ 'gap-3 md:gap-4', 'max-w-[1280px] 3xl:w-[1280px]', // Offset sidebar width when centering on large screens - '3xl:translate-x-[162px]', + '3xl:relative 3xl:left-[162px]', className, )} > diff --git a/src/photo/form/PhotoForm.tsx b/src/photo/form/PhotoForm.tsx index 26466ced..50e842e2 100644 --- a/src/photo/form/PhotoForm.tsx +++ b/src/photo/form/PhotoForm.tsx @@ -415,47 +415,46 @@ export default function PhotoForm({ />; return ( -
+
-
- {thumbnail(true)} + {thumbnail(true)} +
+ {thumbnail(false, clsx( + 'opacity-0 -translate-y-4', + !isThumbnailVisible && + 'opacity-100 translate-y-0 transition-all duration-300', + ))} +
+
- {thumbnail(false, clsx( - 'opacity-0 -translate-y-4', - !isThumbnailVisible && - 'opacity-100 translate-y-0 transition-all duration-300', - ))} -
-
-
- - Analyzing image -
+ + Analyzing image