Skip to content

Commit

Permalink
fix: Style of InformationEdit Dialog
Browse files Browse the repository at this point in the history
If it is displayed directly when the page is loaded,
the parent modal (Viewer), being async,
appears after and therefore above of it.
  • Loading branch information
Merkur39 committed Oct 18, 2024
1 parent 77324c8 commit 10fe38a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Views/InformationEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -109,6 +112,7 @@ const InformationEdit = () => {
<FixedDialog
open
onClose={onClose}
style={fixedDialogStyle}
title={dialogTitle}
content={
<div
Expand Down

0 comments on commit 10fe38a

Please sign in to comment.