Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions components/search.templ
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ templ SearchButton(args SearchButtonArgs) {
templ searchDialog(args SearchButtonArgs) {
<dialog
id="search-dialog"
onclick="if(event.target===this)this.close()"
class="backdrop:o-backdrop-blur-sm o-max-w-prose o-w-full o-h-full o-px-4 sm:o-px-0 o-bg-transparent"
>
<div class="o-h-full o-flex o-flex-col">
Expand All @@ -138,12 +139,13 @@ templ searchDialog(args SearchButtonArgs) {
</div>
<div class="o-flex o-gap-3 o-justify-between o-items-center o-border-t o-border-t-black/10 dark:o-border-t-white/10 o-p-3">
@loadingTagSelectors()
<div
class="o-inline-flex o-gap-2 o-items-center o-text-sm dark:o-text-white"
<button
onclick="this.closest('dialog').close()"
class="o-inline-flex o-gap-2 o-items-center o-text-sm dark:o-text-white o-cursor-pointer"
>
<span class="o-text-caption">Close</span>
@KBD("esc")
</div>
</button>
</div>
</div>
@SearchResults(SearchResultsArgs{})
Expand Down
6 changes: 3 additions & 3 deletions components/search_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.