mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Code refactor
This commit is contained in:
parent
7aa7230082
commit
a699338e38
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ const css = `
|
|||
/* Direction */
|
||||
const inlineStyles = {
|
||||
root: ({ props }) => ({
|
||||
alignItems: props.direction === 'up' || props.direction === 'down' ? 'center' : '',
|
||||
justifyContent: props.direction === 'left' || props.direction === 'right' ? 'center' : '',
|
||||
alignItems: (props.direction === 'up' || props.direction === 'down') && 'center',
|
||||
justifyContent: (props.direction === 'left' || props.direction === 'right') && 'center',
|
||||
flexDirection: props.direction === 'up' ? 'column-reverse' : props.direction === 'down' ? 'column' : props.direction === 'left' ? 'row-reverse' : props.direction === 'right' ? 'row' : null
|
||||
}),
|
||||
menu: ({ props }) => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue