From a1788b01c37715b3c17df5cfc701dc38a94ad387 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:10:01 -0700 Subject: [PATCH] Show description in quicklook --- src/components/quicklaunch.jsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/quicklaunch.jsx b/src/components/quicklaunch.jsx index 9051c599d..4a3f345e8 100644 --- a/src/components/quicklaunch.jsx +++ b/src/components/quicklaunch.jsx @@ -42,7 +42,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear } function handleItemHover(event) { - setCurrentItemIndex(parseInt(event.target?.dataset?.index)); + setCurrentItemIndex(parseInt(event.target?.dataset?.index, 10)); } function handleItemClick() { @@ -84,7 +84,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
-
+
0 && "rounded-t-md", results.length === 0 && "rounded-md", @@ -93,7 +93,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear {results.length > 0 &&
    {results.map((r, i) => (
  • -
- {r.name} +
+ {r.name} + {r.description && {r.description}} +
-
{r.abbr ? t("homepagesearch.bookmark") : t("homepagesearch.service")}
+
{r.abbr ? t("homepagesearch.bookmark") : t("homepagesearch.service")}
))}