Skip to content

Commit 84f46ef

Browse files
committed
delete unused assets
1 parent 2a6260c commit 84f46ef

File tree

4 files changed

+16
-39
lines changed

4 files changed

+16
-39
lines changed

assets/images/ai-stars.svg

Lines changed: 0 additions & 14 deletions
This file was deleted.

assets/images/search-ai.svg

Lines changed: 0 additions & 9 deletions
This file was deleted.

hugo_stats.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@
442442
"mt-20",
443443
"mt-4",
444444
"mt-8",
445+
"mt-[-0.5rem]",
445446
"mt-[2px]",
446447
"mx-1",
447448
"mx-auto",
@@ -510,7 +511,11 @@
510511
"py-8",
511512
"relative",
512513
"right-0",
514+
"right-0.2",
515+
"right-0.5",
516+
"right-1",
513517
"right-2",
518+
"right-6",
514519
"right-8",
515520
"ring-3-2",
516521
"ring-3-[1.5px]",
@@ -581,6 +586,7 @@
581586
"top-1",
582587
"top-16",
583588
"top-6",
589+
"top-full",
584590
"topbar-button",
585591
"transition",
586592
"transition-colors",
@@ -593,6 +599,8 @@
593599
"w-65",
594600
"w-8",
595601
"w-[1200px]",
602+
"w-[500px]",
603+
"w-[600px]",
596604
"w-full",
597605
"whitespace-nowrap",
598606
"xl:flex",

layouts/partials/search-bar.html

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,14 @@
3232
{{ partial "utils/svg.html" "/icons/search.svg" }}
3333
</span>
3434
</div>
35-
<div id="search-bar-dropdown" x-show="open" x-cloak x-ref="dropdown" x-init="$nextTick(() => {
36-
if (open) {
37-
const containerRect = document.getElementById('search-bar-container').getBoundingClientRect();
38-
const rect = $refs.searchBarRef.getBoundingClientRect();
39-
$el.style.top = (rect.bottom + window.scrollY + 9) + 'px';
40-
$el.style.left = (containerRect.right - 600) + 'px';
41-
$el.style.width = '600px';
42-
}
43-
})" x-effect="if (open) {
44-
const containerRect = document.getElementById('search-bar-container').getBoundingClientRect();
45-
const rect = $refs.searchBarRef.getBoundingClientRect();
46-
$el.style.top = (rect.bottom + window.scrollY + 9) + 'px';
47-
$el.style.left = (containerRect.right - 600) + 'px';
48-
$el.style.width = '600px';
49-
}"
50-
class="font-medium text-gray-400 dark:text-gray-200 bg-gray-50 dark:bg-gray-900 rounded-sm mt-1 border-1 border-gray-100 dark:border-gray-700 fixed z-[999] max-w-xl p-6 shadow-md">
35+
<div id="search-bar-dropdown" x-show="open" x-cloak x-ref="dropdown"
36+
class="font-medium text-gray-400 dark:text-gray-200 bg-gray-50 dark:bg-gray-900 rounded-sm mt-4 border-1 border-gray-100 dark:border-gray-700 fixed z-[999] w-[500px] p-6 shadow-md"
37+
x-effect="if (open) {
38+
const containerRect = document.getElementById('search-bar-container').getBoundingClientRect();
39+
const rect = $refs.searchBarRef.getBoundingClientRect();
40+
$el.style.top = (rect.bottom + window.scrollY - 2) + 'px';
41+
$el.style.right = (window.innerWidth - containerRect.right - 15) + 'px';
42+
}">
5143
<div id="search-bar-results">
5244
{{- $emptyState := `<div>Start typing to search or try <button onclick="askAI('search-bar-input')" class="link">Ask
5345
AI</button>.</div>` }}

0 commit comments

Comments
 (0)