Skip to content

Commit 32ca852

Browse files
fix(web): SearchBoxWithAutosuggestions example
1 parent 1437933 commit 32ca852

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

packages/web/examples/SearchBoxWithAutosuggestions/src/index.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ body {
1515
.col {
1616
flex: 1;
1717
padding: 15px;
18+
max-width: 100%;
1819
}
1920

2021
.row > .col:first-child {
2122
border-right: 1px solid #ccc;
22-
max-width: 400px;
2323
}
2424

2525
.row > .col:last-child {
@@ -70,11 +70,6 @@ body {
7070
.authors-list {
7171
color: #9d9d9d;
7272
font-weight: bold;
73-
overflow: hidden;
74-
text-overflow: ellipsis;
75-
display: -webkit-box;
76-
-webkit-line-clamp: 2;
77-
-webkit-box-orient: vertical;
7873
}
7974

8075
.ratings-list {
@@ -151,3 +146,12 @@ body {
151146
.col .meetup-list-image {
152147
background-size: cover;
153148
}
149+
.authors-list {
150+
color: #9d9d9d;
151+
font-weight: bold;
152+
overflow: hidden;
153+
text-overflow: ellipsis;
154+
display: -webkit-box;
155+
-webkit-line-clamp: 2;
156+
-webkit-box-orient: vertical;
157+
}

packages/web/examples/SearchBoxWithAutosuggestions/src/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const Main = () => (
1515
>
1616
<div className="row">
1717
<div className="col">
18+
{' '}
1819
<SearchBox
1920
title="SearchBox"
2021
dataField={['original_title', 'original_title.search']}
@@ -37,15 +38,13 @@ const Main = () => (
3738
enableRecentSuggestions
3839
recentSuggestionsConfig={{
3940
size: 5,
40-
minHits: 5,
41+
minHits: 2,
4142
minChars: 3,
4243
index: 'movies-demo-app', // further restrict the index to search on
4344
sectionLabel: '<b>Recent suggestions 🙌🏻</b>',
4445
}}
4546
/>
46-
</div>
47-
48-
<div className="col">
47+
<br />
4948
<ReactiveList
5049
componentId="SearchResult"
5150
dataField="original_title"

0 commit comments

Comments
 (0)