From d72b16531b13e87b17446a65d6f9d4a0df2597f1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 11 Aug 2019 00:03:22 -0700 Subject: [PATCH] New: Add TVDB Link to add new series search result --- .../AddNewSeries/AddNewSeriesSearchResult.css | 17 +++++++++++++++++ .../AddNewSeries/AddNewSeriesSearchResult.js | 18 +++++++++++++++++- frontend/src/Styles/Variables/colors.js | 1 + 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesSearchResult.css b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesSearchResult.css index 38ccffb4d..d9db2ed12 100644 --- a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesSearchResult.css +++ b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesSearchResult.css @@ -20,7 +20,12 @@ height: 250px; } +.content { + flex: 0 1 100%; +} + .title { + display: flex; font-weight: 300; font-size: 36px; } @@ -30,6 +35,18 @@ color: $disabledColor; } +.tvdbLink { + composes: link from '~Components/Link/Link.css'; + + margin-top: -4px; + margin-left: auto; + color: $textColor; +} + +.tvdbLinkIcon { + margin-left: 10px; +} + .alreadyExistsIcon { margin-left: 10px; color: #37bc9b; diff --git a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesSearchResult.js b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesSearchResult.js index dd502e104..eaf923658 100644 --- a/frontend/src/AddSeries/AddNewSeries/AddNewSeriesSearchResult.js +++ b/frontend/src/AddSeries/AddNewSeries/AddNewSeriesSearchResult.js @@ -39,6 +39,10 @@ class AddNewSeriesSearchResult extends Component { this.setState({ isNewAddSeriesModalOpen: false }); } + onTVDBLinkPress = (event) => { + event.stopPropagation(); + } + // // Render @@ -89,7 +93,7 @@ class AddNewSeriesSearchResult extends Component { /> } -
+
{title} @@ -111,6 +115,18 @@ class AddNewSeriesSearchResult extends Component { /> : null } + + + +
diff --git a/frontend/src/Styles/Variables/colors.js b/frontend/src/Styles/Variables/colors.js index eb006d235..1409d4b15 100644 --- a/frontend/src/Styles/Variables/colors.js +++ b/frontend/src/Styles/Variables/colors.js @@ -1,6 +1,7 @@ const sonarrBlue = '#35c5f4'; module.exports = { + textColor: '#515253', defaultColor: '#333', disabledColor: '#999', dimColor: '#555',