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

View File

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