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);
} }
// //
@ -129,6 +129,10 @@ class ArtistDetailsSeason extends Component {
return ( return (
<div <div
className={styles.albumType} className={styles.albumType}
>
<Link
className={styles.expandButton}
onPress={this.onExpandPress}
> >
<div className={styles.header}> <div className={styles.header}>
<div className={styles.left}> <div className={styles.left}>
@ -146,11 +150,6 @@ class ArtistDetailsSeason extends Component {
</div> </div>
<Link
className={styles.expandButton}
onPress={this.onExpandPress}
>
<Icon <Icon
className={styles.expandButtonIcon} className={styles.expandButtonIcon}
name={isExpanded ? icons.COLLAPSE : icons.EXPAND} name={isExpanded ? icons.COLLAPSE : icons.EXPAND}
@ -162,9 +161,9 @@ class ArtistDetailsSeason extends Component {
!isSmallScreen && !isSmallScreen &&
<span>&nbsp;</span> <span>&nbsp;</span>
} }
</Link>
</div> </div>
</Link>
<div> <div>
{ {