diff --git a/client/src/components/PhotoCapture.tsx b/client/src/components/PhotoCapture.tsx index db573e1..efd802b 100644 --- a/client/src/components/PhotoCapture.tsx +++ b/client/src/components/PhotoCapture.tsx @@ -1,4 +1,5 @@ import React, { useState, useEffect, useRef } from 'react' +import { createPortal } from 'react-dom' import { useTranslation } from 'react-i18next' import { db } from '../services/db.js' import { getActiveMasterKey } from '../services/auth.js' @@ -294,7 +295,7 @@ export default function PhotoCapture({ entryId, logbookId, readOnly = false, pre )} - {maximizedPhoto && ( + {maximizedPhoto && createPortal(