Fixed: Artist AlbumType ExpandbyDefault if has release in 30 days

also Fixes #313
This commit is contained in:
Qstick 2018-04-24 22:36:18 -04:00
parent 307c989409
commit d9422b4edc
2 changed files with 22 additions and 22 deletions

View File

@ -15,6 +15,7 @@
align-items: center;
width: 100%;
font-size: 24px;
cursor: pointer;
}
.albumTypeLabel {
@ -37,7 +38,7 @@
composes: link from 'Components/Link/Link.css';
flex-grow: 1;
margin: 0 20px;
width: 100%;
text-align: center;
}

View File

@ -54,7 +54,7 @@ class ArtistDetailsSeason extends Component {
isAfter(item.releaseDate, { days: -30 });
});
onExpandPress(name, expand && name > 0);
onExpandPress(name, expand);
}
//
@ -130,26 +130,25 @@ class ArtistDetailsSeason extends Component {
<div
className={styles.albumType}
>
<div className={styles.header}>
<div className={styles.left}>
{
<div>
<span className={styles.albumTypeLabel}>
{label}
</span>
<Link
className={styles.expandButton}
onPress={this.onExpandPress}
>
<div className={styles.header}>
<div className={styles.left}>
{
<div>
<span className={styles.albumTypeLabel}>
{label}
</span>
<span className={styles.albumCount}>
({items.length} Releases)
</span>
</div>
}
<span className={styles.albumCount}>
({items.length} Releases)
</span>
</div>
}
</div>
<Link
className={styles.expandButton}
onPress={this.onExpandPress}
>
</div>
<Icon
className={styles.expandButtonIcon}
@ -162,9 +161,9 @@ class ArtistDetailsSeason extends Component {
!isSmallScreen &&
<span>&nbsp;</span>
}
</Link>
</div>
</div>
</Link>
<div>
{