Skip to content

Commit 28e0f11

Browse files
docs(examples): fix markup in QS with inline categories
1 parent 229630c commit 28e0f11

File tree

1 file changed

+12
-16
lines changed
  • examples/query-suggestions-with-inline-categories

1 file changed

+12
-16
lines changed

examples/query-suggestions-with-inline-categories/app.tsx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,19 @@ const querySuggestionsPlugin = createQuerySuggestionsPlugin({
4444
<path d="M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z" />
4545
</svg>
4646
</div>
47-
<div className="aa-ItemContentTitle">
48-
<components.ReverseHighlight hit={item} attribute="query" />
49-
</div>
50-
51-
{item.__autocomplete_qsCategory && (
52-
<div className="aa-ItemContentSubtitle aa-ItemContentSubtitle--standalone">
53-
in{' '}
54-
<span
55-
style={{
56-
fontWeight: 500,
57-
color: 'var(--aa-icon-color)',
58-
}}
59-
>
60-
{item.__autocomplete_qsCategory}
61-
</span>
47+
<div className="aa-ItemContentBody">
48+
<div className="aa-ItemContentTitle">
49+
<components.ReverseHighlight hit={item} attribute="query" />
50+
{item.__autocomplete_qsCategory && (
51+
<span className="aa-ItemContentSubtitle aa-ItemContentSubtitle--inline">
52+
<span className="aa-ItemContentSubtitleIcon" /> in{' '}
53+
<span className="aa-ItemContentSubtitleCategory">
54+
{item.__autocomplete_qsCategory}
55+
</span>
56+
</span>
57+
)}
6258
</div>
63-
)}
59+
</div>
6460
</div>
6561

6662
<div className="aa-ItemActions">

0 commit comments

Comments
 (0)