ublo-lib 1.11.14 → 1.11.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -135,6 +135,13 @@ const SearchBar = ({
|
|
|
135
135
|
window.removeEventListener("keydown", handleKeyPresses);
|
|
136
136
|
};
|
|
137
137
|
}, [autofocus, handleKeyPresses]);
|
|
138
|
+
React.useEffect(() => {
|
|
139
|
+
if (text.length > 2 && search?.result?.length === 0) {
|
|
140
|
+
Plausible.sendGoal("Search failed", {
|
|
141
|
+
Terms: text
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}, [search?.result?.length, text]);
|
|
138
145
|
const Icon = search?.loading ? Icons.LoadIcon : Icons.SearchIcon;
|
|
139
146
|
const classes = classNames("search-bar", {
|
|
140
147
|
"search-bar--opened": search?.result,
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
.inner {
|
|
10
10
|
display: grid;
|
|
11
11
|
grid-template-columns: repeat(auto-fill, 110px);
|
|
12
|
+
justify-content: space-between;
|
|
12
13
|
gap: 22px;
|
|
13
14
|
padding: 10px 0;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.containerSuggestions .inner {
|
|
17
|
-
grid-template-columns: repeat(auto-fill, 110px);
|
|
18
18
|
gap: 26px;
|
|
19
19
|
}
|