From 91cb19b03ed63e52e2ca35e181a1240e6d260e24 Mon Sep 17 00:00:00 2001 From: QuazChick Date: Mon, 20 Jan 2025 17:42:13 +0000 Subject: [PATCH] Improved search experience --- docs/.vitepress/config.ts | 2 +- .../components/navigation/AlgoliaSearch.vue | 136 +++++++++--------- 2 files changed, 67 insertions(+), 71 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 8d3f7c4c41e..77b98432e3b 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -43,7 +43,7 @@ export default defineConfigWithTheme({ appId: "N9ZHAYJQII", apiKey: "a664f5a5da631810a08e1a48554fe523", indexName: "wiki-bedrock", - placeholder: "Search Bedrock Wiki...", + placeholder: "Search Bedrock Wiki…", }, navigation: [ diff --git a/docs/.vitepress/theme/components/navigation/AlgoliaSearch.vue b/docs/.vitepress/theme/components/navigation/AlgoliaSearch.vue index c2295b25c6b..3e7e2e56eec 100644 --- a/docs/.vitepress/theme/components/navigation/AlgoliaSearch.vue +++ b/docs/.vitepress/theme/components/navigation/AlgoliaSearch.vue @@ -1,5 +1,5 @@ @@ -166,11 +159,14 @@ function initialize(userOptions: any) { } .DocSearch-Button-Placeholder { &::after { - content: "..."; + content: "…"; } } .DocSearch-Button-Key { padding: 0; margin: 0; } +.DocSearch-Logo svg * { + fill: var(--accent-color); +}