mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
fix(PhotoViewerTransitionPreview): correct z-index on transition (#112)
This commit is contained in:
@@ -20,7 +20,7 @@ export const PhotoViewerTransitionPreview = ({
|
||||
|
||||
return (
|
||||
<m.div
|
||||
className="pointer-events-none fixed top-0 left-0 z-[40]"
|
||||
className="pointer-events-none fixed top-0 left-0 z-40"
|
||||
data-variant={`photo-viewer-transition-${transition.variant}`}
|
||||
initial={{
|
||||
x: transition.from.left,
|
||||
|
||||
@@ -26,7 +26,14 @@ export const Component = () => {
|
||||
return (
|
||||
<RootPortal>
|
||||
<RootPortalProvider value={rootPortalValue}>
|
||||
<RemoveScroll ref={ref} className="fixed inset-0 z-[9999]">
|
||||
<RemoveScroll
|
||||
ref={ref}
|
||||
className={
|
||||
photoViewer.isOpen
|
||||
? 'fixed inset-0 z-[9999]'
|
||||
: 'pointer-events-none fixed inset-0 z-40'
|
||||
}
|
||||
>
|
||||
<PhotoViewer
|
||||
photos={photos}
|
||||
currentIndex={photoViewer.currentIndex}
|
||||
|
||||
Reference in New Issue
Block a user