From a43c30dd80db47f180d280d1288e92911f9440b1 Mon Sep 17 00:00:00 2001 From: gwleuverink Date: Thu, 9 Oct 2025 17:32:21 +0200 Subject: [PATCH 1/5] add docsearch input to mobile nav --- resources/css/docsearch.css | 4 ++++ resources/js/app.js | 11 ++++++++++- .../components/navbar/mobile-menu.blade.php | 16 ++++++++++++++-- .../views/components/navigation-bar.blade.php | 5 +---- 4 files changed, 29 insertions(+), 7 deletions(-) diff --git a/resources/css/docsearch.css b/resources/css/docsearch.css index d4aa9f96..80d53d74 100644 --- a/resources/css/docsearch.css +++ b/resources/css/docsearch.css @@ -36,6 +36,10 @@ @apply mt-1 ml-1 hidden min-w-[auto] text-sm leading-none sm:flex; } +.DocSearch-Button-Placeholder { + @apply inline!; +} + .DocSearch-Button-Key { background: none; box-shadow: none; diff --git a/resources/js/app.js b/resources/js/app.js index e6d7b49a..fcd34386 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -119,6 +119,15 @@ docsearch({ apiKey: '9be495a1aaf367b47c873d30a8e7ccf5', indexName: 'nativephp', insights: true, - container: '#docsearch', + container: '#docsearch-desktop', + debug: false, +}) + +docsearch({ + appId: 'ZNII9QZ8WI', + apiKey: '9be495a1aaf367b47c873d30a8e7ccf5', + indexName: 'nativephp', + insights: true, + container: '#docsearch-mobile', debug: false, }) diff --git a/resources/views/components/navbar/mobile-menu.blade.php b/resources/views/components/navbar/mobile-menu.blade.php index 1703fb0c..95b4a128 100644 --- a/resources/views/components/navbar/mobile-menu.blade.php +++ b/resources/views/components/navbar/mobile-menu.blade.php @@ -218,9 +218,21 @@ class="flex items-center justify-between py-3 opacity-50 transition duration-200
-
Theme:
+ + {{-- Doc search --}} +
+
+
+
From 125b1ad009c788d15d9a57063610684b5c82413e Mon Sep 17 00:00:00 2001 From: gwleuverink Date: Thu, 9 Oct 2025 17:51:10 +0200 Subject: [PATCH 2/5] improve responsive sizing --- resources/css/docsearch.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/css/docsearch.css b/resources/css/docsearch.css index 80d53d74..7e2ad0e2 100644 --- a/resources/css/docsearch.css +++ b/resources/css/docsearch.css @@ -11,7 +11,7 @@ } .DocSearch-Button { - @apply m-0 flex items-center rounded-full bg-gray-50/50 font-normal ring-1 ring-slate-600/30 transition duration-300 ease-out ring-inset dark:bg-black/30; + @apply m-0 flex h-10 items-center rounded-full bg-gray-50/50 font-normal ring-1 ring-slate-600/30 transition duration-300 ease-out ring-inset min-[1024px]:h-9 dark:bg-black/30; } .DocSearch-Button:hover { From d02e5ebd9d33c2a84a1f4f993d6b8b3d318d0727 Mon Sep 17 00:00:00 2001 From: HassanZahirnia Date: Fri, 10 Oct 2025 19:04:55 +0330 Subject: [PATCH 3/5] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Refactor=20mcp.json=20?= =?UTF-8?q?to=20use=20relative=20paths=20for=20PHP=20command=20and=20artis?= =?UTF-8?q?an=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .junie/mcp/mcp.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.junie/mcp/mcp.json b/.junie/mcp/mcp.json index 7f63ff3c..0fd7d4ef 100644 --- a/.junie/mcp/mcp.json +++ b/.junie/mcp/mcp.json @@ -1,11 +1,8 @@ { "mcpServers": { "laravel-boost": { - "command": "/usr/bin/php8.4", - "args": [ - "/home/hassan/code/nativephp.com/artisan", - "boost:mcp" - ] + "command": "php", + "args": ["./artisan", "boost:mcp"] } } -} \ No newline at end of file +} From 347a56e34bc45b14267c422fe463e00a9a334798 Mon Sep 17 00:00:00 2001 From: HassanZahirnia Date: Fri, 10 Oct 2025 22:07:24 +0330 Subject: [PATCH 4/5] =?UTF-8?q?=E2=9C=A8=20Update=20mobile=20menu=20layout?= =?UTF-8?q?=20and=20styling=20for=20improved=20responsiveness?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/navbar/mobile-menu.blade.php | 113 ++++++++++-------- 1 file changed, 63 insertions(+), 50 deletions(-) diff --git a/resources/views/components/navbar/mobile-menu.blade.php b/resources/views/components/navbar/mobile-menu.blade.php index 95b4a128..99b504cb 100644 --- a/resources/views/components/navbar/mobile-menu.blade.php +++ b/resources/views/components/navbar/mobile-menu.blade.php @@ -68,11 +68,11 @@ class="-ml-2.5 h-5 w-0.5 -rotate-45 rounded-full bg-current transition duration- role="dialog" aria-modal="true" aria-label="Site menu" - class="fixed top-21 right-3 bottom-3.5 left-3 h-auto w-auto origin-top -translate-y-2 scale-y-90 overflow-y-scroll overscroll-contain rounded-2xl bg-gray-100/50 opacity-0 ring-1 ring-gray-200/80 backdrop-blur-2xl transition transition-discrete duration-300 open:translate-y-0 open:scale-y-100 open:opacity-100 min-[500px]:right-3.5 min-[500px]:left-3.5 dark:bg-black/50 dark:text-white dark:ring-gray-700/70 starting:open:-translate-y-2 starting:open:scale-y-0 starting:open:opacity-0" + class="fixed top-20 right-3 bottom-3.5 left-3 w-auto origin-top -translate-y-2 scale-y-90 overflow-y-scroll overscroll-contain rounded-2xl bg-gray-200/50 opacity-0 ring-1 ring-gray-200/80 backdrop-blur-2xl transition transition-discrete duration-300 open:translate-y-0 open:scale-y-100 open:opacity-100 min-[500px]:right-3.5 min-[500px]:left-3.5 dark:bg-black/50 dark:text-white dark:ring-gray-700/70 starting:open:-translate-y-2 starting:open:scale-y-0 starting:open:opacity-0" > -
+