From 5394cc2dc95ebdba93a1ab10cb0a73d800c0a8a9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 31 Jul 2019 14:54:59 -0700 Subject: [PATCH] Interactive search fixes Fixed: Sorting of Quality column in Interactive Search Fixed: column widths in Interactive Search --- .../InteractiveSearch/InteractiveSearchRow.css | 18 ++++++++++++++++++ .../InteractiveSearch/InteractiveSearchRow.js | 6 +++--- .../Indexers/ReleaseModuleBase.cs | 3 +-- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/frontend/src/InteractiveSearch/InteractiveSearchRow.css b/frontend/src/InteractiveSearch/InteractiveSearchRow.css index fffa424d8..a0dcc6cb1 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearchRow.css +++ b/frontend/src/InteractiveSearch/InteractiveSearchRow.css @@ -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; +} diff --git a/frontend/src/InteractiveSearch/InteractiveSearchRow.js b/frontend/src/InteractiveSearch/InteractiveSearchRow.js index 588cea8ed..fe9c9ea73 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearchRow.js +++ b/frontend/src/InteractiveSearch/InteractiveSearchRow.js @@ -125,7 +125,7 @@ class InteractiveSearchRow extends Component { return ( - + @@ -144,7 +144,7 @@ class InteractiveSearchRow extends Component { - + {indexer} @@ -152,7 +152,7 @@ class InteractiveSearchRow extends Component { {formatBytes(size)} - + { protocol === 'torrent' && v.Quality == release.Quality.Quality) * 100; + .QualityProfile.Value.GetIndex(release.Quality.Quality).Index * 100; release.LanguageWeight = decision.RemoteEpisode .Series