Interactive search fixes

Fixed: Sorting of Quality column in Interactive Search
Fixed: column widths in Interactive Search
pull/3061/head
Mark McDowall 5 years ago
parent 63141f339f
commit 5394cc2dc9

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

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

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

Loading…
Cancel
Save