From 88fad7c28479b8d103c9d4b53b112d1fea8efb83 Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Wed, 18 Sep 2024 14:21:12 -0400 Subject: [PATCH] hotfix: adjust stop number positioning --- .../ts/ui/autocomplete/templates/algolia.tsx | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/assets/ts/ui/autocomplete/templates/algolia.tsx b/assets/ts/ui/autocomplete/templates/algolia.tsx index 168a1d796f..786bac91ec 100644 --- a/assets/ts/ui/autocomplete/templates/algolia.tsx +++ b/assets/ts/ui/autocomplete/templates/algolia.tsx @@ -112,26 +112,27 @@ const AlgoliaItemTemplate: SourceTemplates["item"] = ({ {!isContentItem(item) && featureIcons.length > 0 && ( -
- {featureIcons.map((feature: string) => ( - - ))} +
+
+ {featureIcons.map((feature: string) => ( + + ))} +
+ {isStopItem(item) && ( +
+ {`${item.stop.municipality}, ${ + item.stop.address ? stateAbbr(item.stop.address) : "MA" + }`} +
+ )}
)}
- - {isStopItem(item) && ( -
- {`${item.stop.municipality}, ${ - item.stop.address ? stateAbbr(item.stop.address) : "MA" - }`} -
- )} ); };