From e383dcda19c598f87f78eb6c57669b96dea47479 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Wed, 29 Nov 2023 12:18:36 -0800 Subject: [PATCH] Create a Dialog variant to contain a modal within a mirador window --- src/components/CollectionDialog.js | 20 ++------------------ src/config/settings.js | 13 +++++++++++++ 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/components/CollectionDialog.js b/src/components/CollectionDialog.js index 07064e832e..4fd15b564c 100644 --- a/src/components/CollectionDialog.js +++ b/src/components/CollectionDialog.js @@ -124,19 +124,10 @@ export class CollectionDialog extends Component { placeholder() { return ( @@ -186,16 +177,9 @@ export class CollectionDialog extends Component { return ( diff --git a/src/config/settings.js b/src/config/settings.js index fbdb72d896..eb6248b02b 100644 --- a/src/config/settings.js +++ b/src/config/settings.js @@ -208,6 +208,19 @@ export default { disableTouchRipple: true, }, }, + MuiDialog: { + variants: [ + { + props: { variant: 'contained' }, + style: { + position: 'absolute', + '& .MuiBackdrop-root': { + position: 'absolute' + } + }, + } + ] + }, MuiLink: { defaultProps: { underline: 'always'