diff --git a/src/components/LayoutCustom.vue b/src/components/LayoutCustom.vue
index fb1744d..2e9243e 100644
--- a/src/components/LayoutCustom.vue
+++ b/src/components/LayoutCustom.vue
@@ -1,13 +1,11 @@
@@ -21,7 +19,7 @@ const { activeLayout, activeConfig } = toRefs(useLayoutStore())
append-to-body
modal-class="md:w-100"
direction="ltr"
- :size="drawerSize"
+ :size="width"
close-on-press-escape
>
diff --git a/src/components/SearchInput.vue b/src/components/SearchInput.vue
index 9f5a422..84f37aa 100644
--- a/src/components/SearchInput.vue
+++ b/src/components/SearchInput.vue
@@ -2,12 +2,14 @@
import { useGlobalStore } from '@/store'
const { keyword, focusCount } = toRefs(useGlobalStore())
+
+
-
+
- {{ focusCount }} 个
+ {{ focusCount }} 个
diff --git a/src/hooks/index.ts b/src/hooks/index.ts
index af34d48..053fb1d 100644
--- a/src/hooks/index.ts
+++ b/src/hooks/index.ts
@@ -1,2 +1,3 @@
export * from './useDarkAnimate'
export * from './useMobile'
+export * from './useDialogWidth'
diff --git a/src/hooks/useDialogWidth.ts b/src/hooks/useDialogWidth.ts
new file mode 100644
index 0000000..2ff9015
--- /dev/null
+++ b/src/hooks/useDialogWidth.ts
@@ -0,0 +1,8 @@
+import { useMobile } from '@/hooks'
+
+export function useDialogWidth() {
+ const isMobile = useMobile()
+ const { width:w } = useWindowSize()
+ const width = computed(() => isMobile.value && w.value < 400 ? w.value : 400)
+ return width
+}