Refactor #3965 - Refactor on Dialog

This commit is contained in:
Tuğçe Küçükoğlu 2023-07-07 09:04:39 +03:00
parent ecf2336c03
commit 265a45622a
2 changed files with 4 additions and 3 deletions

View file

@ -143,7 +143,7 @@ const styles = `
/* Position */
const inlineStyles = {
mask: ({ position }) => ({
mask: ({ position, modal }) => ({
position: 'fixed',
height: '100%',
width: '100%',
@ -151,7 +151,8 @@ const inlineStyles = {
top: 0,
display: 'flex',
justifyContent: position === 'left' || position === 'topleft' || position === 'bottomleft' ? 'flex-start' : position === 'right' || position === 'topright' || position === 'bottomright' ? 'flex-end' : 'center',
alignItems: position === 'top' || position === 'topleft' || position === 'topright' ? 'flex-start' : position === 'bottom' || position === 'bottomleft' || position === 'bottomright' ? 'flex-end' : 'center'
alignItems: position === 'top' || position === 'topleft' || position === 'topright' ? 'flex-start' : position === 'bottom' || position === 'bottomleft' || position === 'bottomright' ? 'flex-end' : 'center',
pointerEvents: !modal && 'none'
}),
root: {
display: 'flex',