diff --git a/components/app/navbar.vue b/components/app/navbar.vue
index c21847c..9a1b426 100644
--- a/components/app/navbar.vue
+++ b/components/app/navbar.vue
@@ -11,31 +11,6 @@ const handleRandomClick = async () => {
}
await execute();
};
-
-const debouncedSearch = useDebounceFn(async (query: string) => {
- if (searchQuery.value.trim()) {
- router.push({
- path: "/search",
- query: { q: query.trim() },
- });
- }
-}, 500);
-
-const handleSubmit = () => {
- if (searchQuery.value.trim()) {
- router.push({
- path: "/search",
- query: { q: searchQuery.value.trim() },
- });
- }
-};
-
-if (route.path === "/search") {
- // Watch for changes in searchQuery
- watch(searchQuery, (newQuery) => {
- debouncedSearch(newQuery);
- });
-}
@@ -78,11 +53,7 @@ if (route.path === "/search") {
-
+
diff --git a/components/recipe/search.vue b/components/recipe/search.vue
index 32b99a3..9d07d31 100644
--- a/components/recipe/search.vue
+++ b/components/recipe/search.vue
@@ -9,19 +9,36 @@
placeholder="Search recipes..."
@focus="isFocused = true"
@blur="isFocused = false"
- @keydown.enter="$emit('search')"
>
- ⌘
- K
+
+ ⌘
+
+
+ K
+