{{ linkText }}
@@ -105,6 +107,11 @@ defineProps<{
color: var(--vp-c-text-2);
}
+ul.details {
+ list-style-type: disc;
+ padding-left: 14px;
+}
+
.link-text {
padding-top: 8px;
}
diff --git a/src/client/theme-default/components/VPLocalSearchBox.vue b/src/client/theme-default/components/VPLocalSearchBox.vue
index 825a22b5..99abe1ec 100644
--- a/src/client/theme-default/components/VPLocalSearchBox.vue
+++ b/src/client/theme-default/components/VPLocalSearchBox.vue
@@ -2,7 +2,7 @@
import localSearchIndex from '@localSearchIndex'
import {
computedAsync,
- debouncedWatch,
+ watchDebounced,
onKeyStroke,
useEventListener,
useLocalStorage,
@@ -26,7 +26,7 @@ import {
watchEffect,
type Ref
} from 'vue'
-import type { ModalTranslations } from '../../../../types/local-search'
+import type { LocalSearchTranslations } from '../../../../types/local-search'
import { pathToFile } from '../../app/utils'
import { escapeRegExp } from '../../shared'
import { useData } from '../composables/data'
@@ -113,16 +113,6 @@ const disableDetailedView = computed(() => {
)
})
-const buttonText = computed(() => {
- const options = theme.value.search?.options ?? theme.value.algolia
-
- return (
- options?.locales?.[localeIndex.value]?.translations?.button?.buttonText ||
- options?.translations?.button?.buttonText ||
- 'Search'
- )
-})
-
watchEffect(() => {
if (disableDetailedView.value) {
showDetailedList.value = false
@@ -144,7 +134,7 @@ const mark = computedAsync(async () => {
const cache = new LRUCache