mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3965 - Refactor on Dialog
This commit is contained in:
parent
ecf2336c03
commit
265a45622a
2 changed files with 4 additions and 3 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue