mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 05:58:07 +01:00
docs: disable search modal transition on mobile
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<UModal
|
||||
v-model="isSearchModalOpen"
|
||||
:overlay="!isXs"
|
||||
:transition="!isXs"
|
||||
:ui="{
|
||||
padding: 'sm:p-4',
|
||||
rounded: 'sm:rounded-lg',
|
||||
@@ -33,6 +35,9 @@ const navigation: Ref<NavItem[]> = inject('navigation')
|
||||
const router = useRouter()
|
||||
const { usingInput } = useShortcuts()
|
||||
const { isSearchModalOpen } = useDocs()
|
||||
const breakpoints = useBreakpoints({ mobile: 640 })
|
||||
|
||||
const isXs = breakpoints.smaller('mobile')
|
||||
|
||||
const commandPaletteRef = ref<HTMLElement & { query: Ref<string>, results: { item: Command }[] }>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user