mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-19 14:00:50 +08:00
fix(dropdown): transform origin
This commit is contained in:
parent
566b453d3c
commit
caa3f5df12
@ -19,6 +19,7 @@ import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-
|
||||
// --prefix-color
|
||||
// --suffix-color
|
||||
export default cB('dropdown-menu', {
|
||||
transformOrigin: 'inherit',
|
||||
padding: 'var(--padding)',
|
||||
backgroundColor: 'var(--color)',
|
||||
borderRadius: 'var(--border-radius)',
|
||||
@ -95,10 +96,6 @@ export default cB('dropdown-menu', {
|
||||
]),
|
||||
cB('dropdown-menu', {
|
||||
pointerEvents: 'all'
|
||||
}),
|
||||
cB('dropdown-menu-wrapper', {
|
||||
transformOrigin: 'inherit',
|
||||
width: 'fit-content'
|
||||
})
|
||||
]),
|
||||
cB('dropdown-offset-container', {
|
||||
@ -115,5 +112,9 @@ export default cB('dropdown-menu', {
|
||||
backgroundColor: 'var(--divider-color)',
|
||||
height: '1px',
|
||||
margin: '4px 0'
|
||||
}),
|
||||
cB('dropdown-menu-wrapper', {
|
||||
transformOrigin: 'inherit',
|
||||
width: 'fit-content'
|
||||
})
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user