mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
New: Added Genres to Movie Details page
This commit is contained in:
parent
f844cbecaf
commit
84dd10f032
@ -151,7 +151,8 @@
|
|||||||
.qualityProfileName,
|
.qualityProfileName,
|
||||||
.statusName,
|
.statusName,
|
||||||
.studio,
|
.studio,
|
||||||
.collection {
|
.collection,
|
||||||
|
.genres {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
|
@ -266,6 +266,7 @@ class MovieDetails extends Component {
|
|||||||
qualityProfileId,
|
qualityProfileId,
|
||||||
monitored,
|
monitored,
|
||||||
studio,
|
studio,
|
||||||
|
genres,
|
||||||
collection,
|
collection,
|
||||||
overview,
|
overview,
|
||||||
youTubeTrailerId,
|
youTubeTrailerId,
|
||||||
@ -582,6 +583,19 @@ class MovieDetails extends Component {
|
|||||||
</span>
|
</span>
|
||||||
</InfoLabel>
|
</InfoLabel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
!!genres.length && !isSmallScreen &&
|
||||||
|
<InfoLabel
|
||||||
|
className={styles.detailsInfoLabel}
|
||||||
|
title={translate('Genres')}
|
||||||
|
size={sizes.LARGE}
|
||||||
|
>
|
||||||
|
<span className={styles.genres}>
|
||||||
|
{genres.join(', ')}
|
||||||
|
</span>
|
||||||
|
</InfoLabel>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Measure onMeasure={this.onMeasure}>
|
<Measure onMeasure={this.onMeasure}>
|
||||||
@ -766,6 +780,7 @@ MovieDetails.propTypes = {
|
|||||||
monitored: PropTypes.bool.isRequired,
|
monitored: PropTypes.bool.isRequired,
|
||||||
status: PropTypes.string.isRequired,
|
status: PropTypes.string.isRequired,
|
||||||
studio: PropTypes.string,
|
studio: PropTypes.string,
|
||||||
|
genres: PropTypes.arrayOf(PropTypes.string).isRequired,
|
||||||
collection: PropTypes.object,
|
collection: PropTypes.object,
|
||||||
youTubeTrailerId: PropTypes.string,
|
youTubeTrailerId: PropTypes.string,
|
||||||
isAvailable: PropTypes.bool.isRequired,
|
isAvailable: PropTypes.bool.isRequired,
|
||||||
@ -798,6 +813,7 @@ MovieDetails.propTypes = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
MovieDetails.defaultProps = {
|
MovieDetails.defaultProps = {
|
||||||
|
genres: [],
|
||||||
tags: [],
|
tags: [],
|
||||||
isSaving: false,
|
isSaving: false,
|
||||||
sizeOnDisk: 0
|
sizeOnDisk: 0
|
||||||
|
Loading…
Reference in New Issue
Block a user