summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-20 13:56:24 +0200
committerDanilo M. <danix@danix.xyz>2026-04-20 13:56:24 +0200
commit37a05e2630d48eb644460ab5b33b5bce189cb836 (patch)
tree2de375c3f4eefb432b7299e14acb31a8f0e52a67
parent47db5c6878aa872b5b791ec6a26494e28ebf31a0 (diff)
downloaddanixxyz-37a05e2630d48eb644460ab5b33b5bce189cb836.tar.gz
danixxyz-37a05e2630d48eb644460ab5b33b5bce189cb836.zip
feat: add open-search event listener to modal
Modal now listens for 'open-search' event dispatched by header search icon button. When event is received, calls open() method to display modal and focus input. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/search-modal.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/search-modal.html b/themes/danix-xyz-hacker/layouts/partials/search-modal.html
index 22f68af..6b96b3a 100644
--- a/themes/danix-xyz-hacker/layouts/partials/search-modal.html
+++ b/themes/danix-xyz-hacker/layouts/partials/search-modal.html
@@ -3,6 +3,7 @@
x-cloak
x-data="searchOverlay()"
@keydown.escape.window="handleEscape($event)"
+ @open-search.window="open()"
class="fixed inset-0 z-50"
:class="{ 'flex items-center justify-center': isOpen, 'hidden': !isOpen }"
x-show="isOpen"