From 10fe38afba3d804716564aea5f4fcb8c302fd56f Mon Sep 17 00:00:00 2001 From: AlexisG Date: Fri, 18 Oct 2024 09:14:20 +0200 Subject: [PATCH] fix: Style of InformationEdit Dialog If it is displayed directly when the page is loaded, the parent modal (Viewer), being async, appears after and therefore above of it. --- src/components/Views/InformationEdit.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Views/InformationEdit.jsx b/src/components/Views/InformationEdit.jsx index 4ffb62ce..8a864ada 100644 --- a/src/components/Views/InformationEdit.jsx +++ b/src/components/Views/InformationEdit.jsx @@ -23,6 +23,9 @@ import Spinner from 'cozy-ui/transpiled/react/Spinner' import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints' import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n' +// Keep the Dialog above the Viewer +const fixedDialogStyle = { zIndex: 'var(--zIndex-modal-footer)' } + const InformationEdit = () => { const { fileId } = useParams() const client = useClient() @@ -109,6 +112,7 @@ const InformationEdit = () => {