mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-05 13:20:32 -05:00
Fixed: React error when displaying a search result for an existing item
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -94,11 +94,13 @@ class AddNewAlbumSearchResult extends Component {
|
||||
const height = calculateHeight(230, isSmallScreen);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className={styles.searchResult}>
|
||||
<Link
|
||||
className={styles.searchResult}
|
||||
className={styles.underlay}
|
||||
{...linkProps}
|
||||
>
|
||||
/>
|
||||
|
||||
<div className={styles.overlay}>
|
||||
{
|
||||
!isSmallScreen &&
|
||||
<AlbumCover
|
||||
@@ -212,7 +214,7 @@ class AddNewAlbumSearchResult extends Component {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<AddNewAlbumModal
|
||||
isOpen={isNewAddAlbumModalOpen && !isExistingAlbum}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -92,11 +92,13 @@ class AddNewArtistSearchResult extends Component {
|
||||
const height = calculateHeight(230, isSmallScreen);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className={styles.searchResult}>
|
||||
<Link
|
||||
className={styles.searchResult}
|
||||
className={styles.underlay}
|
||||
{...linkProps}
|
||||
>
|
||||
/>
|
||||
|
||||
<div className={styles.overlay}>
|
||||
{
|
||||
isSmallScreen ?
|
||||
null :
|
||||
@@ -190,7 +192,7 @@ class AddNewArtistSearchResult extends Component {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<AddNewArtistModal
|
||||
isOpen={isNewAddArtistModalOpen && !isExistingArtist}
|
||||
|
||||
Reference in New Issue
Block a user