diff --git a/examples/components/App.tsx b/examples/components/App.tsx index 7f8c5403..88e01e82 100644 --- a/examples/components/App.tsx +++ b/examples/components/App.tsx @@ -281,9 +281,10 @@ export class App extends React.PureComponent { }} /> - -
- + +
+ +
+
-
- {searchResults.map(item => { - return ( - -
{item.title}
-

- - ); - })} -

+ {searchResults.length > 0 ? ( +
+ {searchResults.map(item => { + return ( + +
{item.title}
+

+ + ); + })} +

+ ) : null}
); } diff --git a/examples/style.scss b/examples/style.scss index ed2200f1..872f642b 100644 --- a/examples/style.scss +++ b/examples/style.scss @@ -714,11 +714,19 @@ a { .search-result { background-color: #fff; - top: 45px; + top: 50px; bottom: 0; position: fixed; overflow-y: scroll; overflow-x: hidden; + box-shadow: 0px 2px 7px #888888; + a { + padding: 0 5px; + display: block; + } + a:hover { + background-color: $gray200; + } } .dark {