From ed827837aa86a892fd7603e6d0dc8187138f58c2 Mon Sep 17 00:00:00 2001 From: Flo2410 Date: Mon, 29 Jan 2024 21:08:08 +0000 Subject: [PATCH] Added `opacity-50` to suggested part of the search suggestion. --- src/components/quicklaunch.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/quicklaunch.jsx b/src/components/quicklaunch.jsx index 451383ed..908d1ee9 100644 --- a/src/components/quicklaunch.jsx +++ b/src/components/quicklaunch.jsx @@ -276,7 +276,15 @@ export default function QuickLaunch({ )}
- {r.name} + {r.type !== "searchSuggestion" && {r.name}} + {r.type === "searchSuggestion" && ( + <> + {searchString} + + {r.name.substring(searchString.length)} + + + )} {r.description && ( {searchDescriptions && r.priority < 2 ? highlightText(r.description) : r.description}