diff --git a/assets/javascripts/discourse/connectors/after-search-result-entry/search-result-decoration.gjs b/assets/javascripts/discourse/connectors/after-search-result-entry/search-result-decoration.gjs index 04860d3a..7ee1f8fc 100644 --- a/assets/javascripts/discourse/connectors/after-search-result-entry/search-result-decoration.gjs +++ b/assets/javascripts/discourse/connectors/after-search-result-entry/search-result-decoration.gjs @@ -1,10 +1,16 @@ +import didInsert from "@ember/render-modifiers/modifiers/did-insert"; import icon from "discourse-common/helpers/d-icon"; import i18n from "discourse-common/helpers/i18n"; +function addResultClass(element) { + element.closest(".fps-result")?.classList.add("ai-result"); +} + const SearchResultDecoration =