diff --git a/config.js b/config.js
index fd17d95..36d6267 100644
--- a/config.js
+++ b/config.js
@@ -1 +1 @@
-export const basename = '/isearch/0.16/index.html';
+export const basename = '/isearch/0.17/index.html';
diff --git a/lib/destination-tile/index.js b/lib/destination-tile/index.js
index 36c6eb8..7ba6e1a 100644
--- a/lib/destination-tile/index.js
+++ b/lib/destination-tile/index.js
@@ -12,9 +12,12 @@ class DestinationTile extends Component {
const { image, title, text } = sections[0];
let previewTextArray = text.split('').slice(0, 292);
if (previewTextArray[previewTextArray.length - 1] === ' ') {
- previewTextArray = previewTextArray.slice(0, previewTextArray.length - 1);
+ previewTextArray = previewTextArray.slice(0, previewTextArray.length - 1); // remove unecessary whitespace at the end of the string
}
- const previewText = previewTextArray.slice(0, previewTextArray.length - 1).join('') + '...';
+ if (previewTextArray.slice(0, 5).join('').indexOf('
') === -1) {
+ previewTextArray = ['
', ...previewTextArray]; // if the paragraph doesn't start with a
then add one so the html is valid
+ }
+ const previewText = previewTextArray.slice(0, previewTextArray.length - 1).join('') + '...
'; // close the string with a
return (
diff --git a/lib/destination-tile/styles.css b/lib/destination-tile/styles.css
index d16de1a..672bd9e 100644
--- a/lib/destination-tile/styles.css
+++ b/lib/destination-tile/styles.css
@@ -125,6 +125,7 @@
.mapVideoIconContainer {
text-align: center;
padding-top: 1.2em;
+ background-color: white;
}
.titleDestHotelContainer {
diff --git a/src/components/search-results/index.js b/src/components/search-results/index.js
index 741644f..956c0fa 100644
--- a/src/components/search-results/index.js
+++ b/src/components/search-results/index.js
@@ -196,7 +196,7 @@ class SearchResults extends Component {
// see: https://github.com/numo-labs/isearch-ui/issues/257
if (((feedEnd && searchComplete) || (searchItems.length === 0 && searchComplete)) && relatedItems.length > 0) {
return (
- [
{message}
,
+ [
{message}
,