Interactive search fixes

Fixed: Sorting of Quality column in Interactive Search
Fixed: column widths in Interactive Search
This commit is contained in:
Mark McDowall 2019-07-31 14:54:59 -07:00
parent 63141f339f
commit 5394cc2dc9
3 changed files with 22 additions and 5 deletions

View File

@ -1,9 +1,21 @@
.protocol {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 80px;
}
.title { .title {
composes: cell from '~Components/Table/Cells/TableRowCell.css'; composes: cell from '~Components/Table/Cells/TableRowCell.css';
word-break: break-all; word-break: break-all;
} }
.indexer {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 85px;
}
.quality, .quality,
.language { .language {
composes: cell from '~Components/Table/Cells/TableRowCell.css'; composes: cell from '~Components/Table/Cells/TableRowCell.css';
@ -36,3 +48,9 @@
white-space: nowrap; white-space: nowrap;
} }
.peers {
composes: cell from '~Components/Table/Cells/TableRowCell.css';
width: 75px;
}

View File

@ -125,7 +125,7 @@ class InteractiveSearchRow extends Component {
return ( return (
<TableRow> <TableRow>
<TableRowCell> <TableRowCell className={styles.protocol}>
<ProtocolLabel <ProtocolLabel
protocol={protocol} protocol={protocol}
/> />
@ -144,7 +144,7 @@ class InteractiveSearchRow extends Component {
</Link> </Link>
</TableRowCell> </TableRowCell>
<TableRowCell> <TableRowCell className={styles.indexer}>
{indexer} {indexer}
</TableRowCell> </TableRowCell>
@ -152,7 +152,7 @@ class InteractiveSearchRow extends Component {
{formatBytes(size)} {formatBytes(size)}
</TableRowCell> </TableRowCell>
<TableRowCell> <TableRowCell className={styles.peers}>
{ {
protocol === 'torrent' && protocol === 'torrent' &&
<Peers <Peers

View File

@ -30,8 +30,7 @@ namespace Sonarr.Api.V3.Indexers
{ {
release.QualityWeight = decision.RemoteEpisode release.QualityWeight = decision.RemoteEpisode
.Series .Series
.QualityProfile.Value .QualityProfile.Value.GetIndex(release.Quality.Quality).Index * 100;
.Items.FindIndex(v => v.Quality == release.Quality.Quality) * 100;
release.LanguageWeight = decision.RemoteEpisode release.LanguageWeight = decision.RemoteEpisode
.Series .Series