1
0
Fork 0

fix: add pointer-events-auto to lightbox image so clicking the photo does not close it

This commit is contained in:
Jonny 2026-08-18 13:08:52 +02:00
parent 97ac267158
commit 3e544be8ce
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export function FotoGalerie({ fotos }: { fotos: AuftragFoto[] }) {
<img <img
src={offenesFoto.url} src={offenesFoto.url}
alt={offenesFoto.label} alt={offenesFoto.label}
className="pointer-events-none max-h-[80vh] max-w-[90vw] rounded-md object-contain" className="pointer-events-auto max-h-[80vh] max-w-[90vw] rounded-md object-contain"
/> />
<p className="pointer-events-none text-white">{offenesFoto.label}</p> <p className="pointer-events-none text-white">{offenesFoto.label}</p>
<a href={offenesFoto.downloadUrl} className={`${buttonClasses("secondary", false)} pointer-events-auto`}> <a href={offenesFoto.downloadUrl} className={`${buttonClasses("secondary", false)} pointer-events-auto`}>