Skip to content

Commit 1d4c770

Browse files
[getsentry/action-github-commit] Auto commit
1 parent 222fbb2 commit 1d4c770

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

src/components/docImageClient.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ export function DocImageClient({
4343

4444
return (
4545
<div onContextMenu={handleContextMenu} onClick={handleClick}>
46-
<ImageLightbox
47-
src={src}
48-
alt={alt}
49-
width={width}
50-
height={height}
51-
>
46+
<ImageLightbox src={src} alt={alt} width={width} height={height}>
5247
<Image
5348
src={src}
5449
width={width}
@@ -64,4 +59,4 @@ export function DocImageClient({
6459
</ImageLightbox>
6560
</div>
6661
);
67-
}
62+
}

src/components/imageLightbox.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ export function ImageLightbox({src, alt, width, height, children}: ImageLightbox
2323
{children}
2424
</button>
2525
</Dialog.Trigger>
26-
26+
2727
<Dialog.Portal>
2828
<Dialog.Overlay className="dialog-overlay fixed inset-0 bg-black/80 backdrop-blur-sm z-50" />
29-
29+
3030
<Dialog.Content className="fixed left-[50%] top-[50%] z-50 max-h-[90vh] max-w-[90vw] translate-x-[-50%] translate-y-[-50%]">
31-
3231
{/* Close button */}
3332
<Dialog.Close className="absolute right-4 top-4 z-10 rounded-sm bg-black/50 p-2 text-white opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2">
3433
<X className="h-4 w-4" />
@@ -61,4 +60,4 @@ export function ImageLightbox({src, alt, width, height, children}: ImageLightbox
6160
</Dialog.Portal>
6261
</Dialog.Root>
6362
);
64-
}
63+
}

0 commit comments

Comments
 (0)