Menubar TW submenu spacing issue fixed

pull/4649/head
ATAKAN TEPE 2023-10-18 05:43:37 +03:00
parent 50b18542a4
commit 6db3f8c6ad
1 changed files with 10 additions and 3 deletions

View File

@ -2221,16 +2221,23 @@ export default {
]
}),
action: ({ context }) => ({
class: ['select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative', 'py-3 px-5 select-none']
class: [
'select-none',
'cursor-pointer flex items-center no-underline overflow-hidden relative',
'py-3 px-5 select-none',
{
'pl-9 sm:pl-5': context.level === 1,
'pl-14 sm:pl-5': context.level === 2
}
]
}),
icon: {
class: 'mr-2'
},
submenuicon: ({ props }) => ({
class: [
'max-[960px]:ml-auto',
{
'ml-2': props.root,
'ml-auto sm:ml-2': props.root,
'ml-auto': !props.root
}
]