Fix Immich modal positioning with portal to always see the Associate button

This commit is contained in:
Mistral Vibe committed 2026-10-12 16:48:48 +02:00
1 parent c703a34165
commit 50873a4f9e
1 file changed
+4 -2
+4 -2
View File
@@ -1,5 +1,6 @@
import { useCallback, useEffect, useRef, useState } from 'react'
import { ImagePlus, Loader2, Search, Unlink, UserRound, X } from 'lucide-react'
import { createPortal } from 'react-dom'
import {
assignImmichPerson,
@@ -128,7 +129,7 @@ const ImmichFacePanel = ({ person, treeId, token, onClose, onImmichChange }) =>
}
}
return (
return createPortal(
<div className="pz-overlay immich-modal-overlay" onClick={handleOverlayClick}>
<div className="pz-modal immich-modal-card" role="dialog" aria-modal="true" aria-labelledby="immichFaceTitle">
<div className="pz-modal-head">
@@ -213,7 +214,8 @@ const ImmichFacePanel = ({ person, treeId, token, onClose, onImmichChange }) =>
</div>
)}
</div>
</div>
</div>,
document.body
)
}