Skip to content

Commit 1437933

Browse files
fix(web): SearchBoxWithTags example
1 parent 71e0ecf commit 1437933

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

packages/web/examples/SearchBoxWithTags/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/SearchBoxWithTags/src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ const Main = () => (
1212
<div className="row">
1313
<div className="col">
1414
<SearchBox
15+
defaultValue={['shock and awe', 'Great Expectations']}
1516
title="SearchBox"
1617
dataField={['original_title', 'original_title.search']}
1718
componentId="MoviesSensor"
1819
mode={'tag'}
1920
/>
20-
</div>
21-
22-
<div className="col">
21+
<br />
2322
<ReactiveList
2423
componentId="SearchResult"
2524
dataField="original_title"

0 commit comments

Comments
 (0)