Skip to content

Commit 19f8734

Browse files
fix(web): SearchBoxWithKeyboardShortcuts example
1 parent f19f881 commit 19f8734

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ const Main = () => (
1212
<div className="row">
1313
<div className="col">
1414
<SearchBox
15-
title="SearchBox"
15+
title="SearchBox with keyboard shortcuts"
1616
dataField={['original_title', 'original_title.search']}
1717
componentId="MoviesSensor"
18-
focusShortcuts={['SHIFT+Y']}
18+
focusShortcuts={['CMD + K']}
1919
/>
20-
</div>
21-
22-
<div className="col">
20+
<br />
2321
<ReactiveList
2422
componentId="SearchResult"
2523
dataField="original_title"

0 commit comments

Comments
 (0)