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