fix(Sidebar): add commas

This commit is contained in:
Maxim Kim 2024-10-31 09:27:20 +12:00 committed by GitHub
parent 0ad3887bc2
commit 5ca3fc9a6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ const props = withDefaults(defineProps<{
side: 'left',
variant: 'sidebar',
collapsible: 'offcanvas',
minScreen: 'md'
minScreen: 'md',
})
const { isMobile, state, openMobile, setOpenMobile } = useSidebar()
@ -78,7 +78,7 @@ const { isMobile, state, openMobile, setOpenMobile } = useSidebar()
variant === 'floating' || variant === 'inset'
? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]'
: 'group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l',
{ 'sm:block': minScreen === 'sm', 'md:block': minScreen === 'md', 'lg:block': minScreen === 'lg' }
{ 'sm:block': minScreen === 'sm', 'md:block': minScreen === 'md', 'lg:block': minScreen === 'lg' },
props.class,
)"
v-bind="$attrs"