Small UI Tweaks, Fix Banner Images When Artist Deleted

pull/6/head
Qstick 7 years ago
parent 75aa8af9d2
commit 6718d82432

@ -45,7 +45,13 @@ class InteractiveEpisodeSearchRow extends Component {
// Listeners // Listeners
onGrabPress = () => { onGrabPress = () => {
this.props.onGrabPress(this.props.guid, this.props.indexerId); const {
guid,
indexerId,
onGrabPress
}= this.props;
onGrabPress(guid, indexerId);
} }
// //

@ -61,9 +61,11 @@ class ArtistBanner extends Component {
if (nextBanner && (!banner || nextBanner.url !== banner.url)) { if (nextBanner && (!banner || nextBanner.url !== banner.url)) {
this.setState({ this.setState({
banner: nextBanner, banner: nextBanner,
posterUrl: getBannerUrl(nextBanner, pixelRatio * size), bannerUrl: getBannerUrl(nextBanner, pixelRatio * size),
isLoaded: false,
hasError: false hasError: false
// Don't reset isLoaded, as we want to immediately try to
// show the new image, whether an image was shown previously
// or the placeholder was shown.
}); });
} }
} }

@ -62,8 +62,10 @@ class ArtistPoster extends Component {
this.setState({ this.setState({
poster: nextPoster, poster: nextPoster,
posterUrl: getPosterUrl(nextPoster, pixelRatio * size), posterUrl: getPosterUrl(nextPoster, pixelRatio * size),
isLoaded: false,
hasError: false hasError: false
// Don't reset isLoaded, as we want to immediately try to
// show the new image, whether an image was shown previously
// or the placeholder was shown.
}); });
} }
} }

@ -21,7 +21,6 @@ $hoverScale: 1.05;
.bannerContainer { .bannerContainer {
position: relative; position: relative;
background-color: #ffffff;
} }
.link { .link {

@ -1,7 +1,16 @@
$hoverScale: 1.05; $hoverScale: 1.05;
.container { .container {
&:hover {
.content {
background-color: $tableRowHoverBackgroundColor;
}
}
}
.content {
display: flex; display: flex;
flex-grow: 1;
} }
.poster { .poster {

@ -113,7 +113,8 @@ class ArtistIndexOverview extends Component {
return ( return (
<div className={styles.container} style={style}> <div className={styles.container} style={style}>
<div className={styles.poster} style={elementStyle}> <div className={styles.content}>
<div className={styles.poster}>
<div className={styles.posterContainer}> <div className={styles.posterContainer}>
{ {
status === 'ended' && status === 'ended' &&
@ -161,7 +162,7 @@ class ArtistIndexOverview extends Component {
<div className={styles.actions}> <div className={styles.actions}>
<SpinnerIconButton <SpinnerIconButton
name={icons.REFRESH} name={icons.REFRESH}
title="Refresh artist" title="Refresh Artist"
isSpinning={isRefreshingArtist} isSpinning={isRefreshingArtist}
onPress={onRefreshArtistPress} onPress={onRefreshArtistPress}
/> />
@ -199,6 +200,7 @@ class ArtistIndexOverview extends Component {
/> />
</div> </div>
</div> </div>
</div>
<EditArtistModalConnector <EditArtistModalConnector
isOpen={isEditArtistModalOpen} isOpen={isEditArtistModalOpen}

Loading…
Cancel
Save