Fixed: Fixed size on disk not showing for series in overview view

Closes #4000
This commit is contained in:
Mark McDowall 2020-10-05 21:15:49 -07:00
parent f4f2a6f5fc
commit d105dd47e0
3 changed files with 12 additions and 6 deletions

View File

@ -101,7 +101,8 @@ class SeriesIndexOverview extends Component {
seasonCount,
episodeCount,
episodeFileCount,
totalEpisodeCount
totalEpisodeCount,
sizeOnDisk
} = statistics;
const {
@ -212,6 +213,7 @@ class SeriesIndexOverview extends Component {
nextAiring={nextAiring}
seasonCount={seasonCount}
qualityProfile={qualityProfile}
sizeOnDisk={sizeOnDisk}
showRelativeDates={showRelativeDates}
shortDateFormat={shortDateFormat}
longDateFormat={longDateFormat}

View File

@ -15,7 +15,6 @@ const rows = [
name: 'monitored',
showProp: 'showMonitored',
valueProp: 'monitored'
},
{
name: 'network',

View File

@ -71,7 +71,8 @@ class SeriesIndexOverviews extends Component {
items,
sortKey,
overviewOptions,
jumpToCharacter
jumpToCharacter,
isSmallScreen
} = this.props;
const {
@ -81,13 +82,17 @@ class SeriesIndexOverviews extends Component {
if (prevProps.sortKey !== sortKey ||
prevProps.overviewOptions !== overviewOptions) {
this.calculateGrid();
this.calculateGrid(this.state.width, isSmallScreen);
}
if (this._grid &&
if (
this._grid &&
(prevState.width !== width ||
prevState.rowHeight !== rowHeight ||
hasDifferentItemsOrOrder(prevProps.items, items))) {
hasDifferentItemsOrOrder(prevProps.items, items) ||
prevProps.overviewOptions !== overviewOptions
)
) {
// recomputeGridSize also forces Grid to discard its cache of rendered cells
this._grid.recomputeGridSize();
}