Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Fix lightbox: allow scrolling left when zoomed in

Claude39ca2e6ca743
diff --git a/frontend/src/components/ImageLightbox.tsx b/frontend/src/components/ImageLightbox.tsx
index eaaa213e..dec5805c 100644
--- a/frontend/src/components/ImageLightbox.tsx
+++ b/frontend/src/components/ImageLightbox.tsx
@@ -169,12 +169,12 @@ function ImageLightbox({ image, onClose }: ImageLightboxProps) {
onWheel={handleWheel}
onClick={handleViewportClick}
>
- <div className="flex min-h-full min-w-full items-center justify-center p-8">
+ <div className="flex min-h-full min-w-full p-8">
{image && (
<img
src={image}
alt="Reference image"
- className="rounded-lg shadow-2xl select-none"
+ className="rounded-lg shadow-2xl select-none shrink-0 m-auto"
draggable={false}
onClick={(e) => e.stopPropagation()}
style={