From 151bf5b49f8c7a051cde6b589a5695ecfef44eb8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 30 Dec 2019 21:48:43 -0500 Subject: [PATCH] Fixed: React error displaying a search result for an existing movie Co-Authored-By: Mark McDowall --- .../AddNewMovie/AddNewMovieSearchResult.css | 16 ++++++++++++++-- .../AddNewMovie/AddNewMovieSearchResult.js | 10 ++++++---- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/frontend/src/AddMovie/AddNewMovie/AddNewMovieSearchResult.css b/frontend/src/AddMovie/AddNewMovie/AddNewMovieSearchResult.css index 3d6cc972a..f386e0048 100644 --- a/frontend/src/AddMovie/AddNewMovie/AddNewMovieSearchResult.css +++ b/frontend/src/AddMovie/AddNewMovie/AddNewMovieSearchResult.css @@ -1,10 +1,15 @@ .searchResult { - display: flex; + position: relative; margin: 20px 0; padding: 20px; width: 100%; - background-color: $white; color: inherit; +} + +.underlay { + @add-mixin cover; + + background-color: $white; transition: background 500ms; &:hover { @@ -14,6 +19,13 @@ } } +.overlay { + @add-mixin linkOverlay; + + position: relative; + display: flex; +} + .poster { flex: 0 0 170px; margin-right: 20px; diff --git a/frontend/src/AddMovie/AddNewMovie/AddNewMovieSearchResult.js b/frontend/src/AddMovie/AddNewMovie/AddNewMovieSearchResult.js index 1a76c6f7a..ac48aa225 100644 --- a/frontend/src/AddMovie/AddNewMovie/AddNewMovieSearchResult.js +++ b/frontend/src/AddMovie/AddNewMovie/AddNewMovieSearchResult.js @@ -70,11 +70,13 @@ class AddNewMovieSearchResult extends Component { const linkProps = isExistingMovie ? { to: `/movie/${titleSlug}` } : { onPress: this.onPress }; return ( -
+
+ /> + +
{ isSmallScreen ? null : @@ -158,7 +160,7 @@ class AddNewMovieSearchResult extends Component { {overview}
- +