mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
Fixed: Banner not growing when most columns are hidden
This commit is contained in:
@@ -19,6 +19,7 @@ import SeriesTitleLink from 'Series/SeriesTitleLink';
|
||||
import EditSeriesModalConnector from 'Series/Edit/EditSeriesModalConnector';
|
||||
import DeleteSeriesModal from 'Series/Delete/DeleteSeriesModal';
|
||||
import SeriesBanner from 'Series/SeriesBanner';
|
||||
import hasGrowableColumns from './hasGrowableColumns';
|
||||
import SeriesStatusCell from './SeriesStatusCell';
|
||||
import styles from './SeriesIndexRow.css';
|
||||
|
||||
@@ -154,7 +155,8 @@ class SeriesIndexRow extends Component {
|
||||
key={name}
|
||||
className={classNames(
|
||||
styles[name],
|
||||
showBanners && styles.banner
|
||||
showBanners && styles.banner,
|
||||
showBanners && !hasGrowableColumns(columns) && styles.bannerGrow
|
||||
)}
|
||||
>
|
||||
{
|
||||
@@ -307,8 +309,10 @@ class SeriesIndexRow extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
const seasonStatistics = latestSeason.statistics;
|
||||
const progress = seasonStatistics.episodeCount ? seasonStatistics.episodeFileCount / seasonStatistics.episodeCount * 100 : 100;
|
||||
const seasonStatistics = latestSeason.statistics || {};
|
||||
const progress = seasonStatistics.episodeCount ?
|
||||
seasonStatistics.episodeFileCount / seasonStatistics.episodeCount * 100 :
|
||||
100;
|
||||
|
||||
return (
|
||||
<VirtualTableRowCell
|
||||
|
||||
Reference in New Issue
Block a user