mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (UI) Improved mobile search form and show indexer flags
This commit is contained in:
@@ -12,6 +12,7 @@ import Peers from 'Search/Table/Peers';
|
|||||||
import dimensions from 'Styles/Variables/dimensions';
|
import dimensions from 'Styles/Variables/dimensions';
|
||||||
import formatAge from 'Utilities/Number/formatAge';
|
import formatAge from 'Utilities/Number/formatAge';
|
||||||
import formatBytes from 'Utilities/Number/formatBytes';
|
import formatBytes from 'Utilities/Number/formatBytes';
|
||||||
|
import titleCase from 'Utilities/String/titleCase';
|
||||||
import translate from 'Utilities/String/translate';
|
import translate from 'Utilities/String/translate';
|
||||||
import styles from './SearchIndexOverview.css';
|
import styles from './SearchIndexOverview.css';
|
||||||
|
|
||||||
@@ -78,6 +79,7 @@ class SearchIndexOverview extends Component {
|
|||||||
categories,
|
categories,
|
||||||
seeders,
|
seeders,
|
||||||
leechers,
|
leechers,
|
||||||
|
indexerFlags,
|
||||||
size,
|
size,
|
||||||
age,
|
age,
|
||||||
ageHours,
|
ageHours,
|
||||||
@@ -107,7 +109,6 @@ class SearchIndexOverview extends Component {
|
|||||||
text={title}
|
text={title}
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.actions}>
|
<div className={styles.actions}>
|
||||||
@@ -155,6 +156,20 @@ class SearchIndexOverview extends Component {
|
|||||||
<CategoryLabel
|
<CategoryLabel
|
||||||
categories={categories}
|
categories={categories}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{
|
||||||
|
indexerFlags.length ?
|
||||||
|
indexerFlags
|
||||||
|
.sort((a, b) => a.localeCompare(b))
|
||||||
|
.map((flag, index) => {
|
||||||
|
return (
|
||||||
|
<Label key={index} kind={kinds.INFO}>
|
||||||
|
{titleCase(flag)}
|
||||||
|
</Label>
|
||||||
|
);
|
||||||
|
}) :
|
||||||
|
null
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -24,7 +24,8 @@
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.searchButton {
|
.searchButton,
|
||||||
|
.grabReleasesButton {
|
||||||
composes: button from '~Components/Link/SpinnerButton.css';
|
composes: button from '~Components/Link/SpinnerButton.css';
|
||||||
|
|
||||||
margin-left: 25px;
|
margin-left: 25px;
|
||||||
@@ -32,18 +33,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.selectedReleasesLabel {
|
.selectedReleasesLabel {
|
||||||
margin-bottom: 3px;
|
margin-bottom: 5px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: $breakpointSmall) {
|
@media only screen and (max-width: $breakpointSmall) {
|
||||||
.inputContainer {
|
.inputContainer,
|
||||||
|
.indexerContainer {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonContainer {
|
.buttonContainer {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonContainerContent {
|
.buttonContainerContent {
|
||||||
@@ -52,5 +55,20 @@
|
|||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grabReleasesButton,
|
||||||
|
.searchButton {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grabReleasesButton {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selectedReleasesLabel {
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1
frontend/src/Search/SearchFooter.css.d.ts
vendored
1
frontend/src/Search/SearchFooter.css.d.ts
vendored
@@ -4,6 +4,7 @@ interface CssExports {
|
|||||||
'buttonContainer': string;
|
'buttonContainer': string;
|
||||||
'buttonContainerContent': string;
|
'buttonContainerContent': string;
|
||||||
'buttons': string;
|
'buttons': string;
|
||||||
|
'grabReleasesButton': string;
|
||||||
'indexerContainer': string;
|
'indexerContainer': string;
|
||||||
'inputContainer': string;
|
'inputContainer': string;
|
||||||
'searchButton': string;
|
'searchButton': string;
|
||||||
|
@@ -259,11 +259,10 @@ class SearchFooter extends Component {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<div className={styles.buttons}>
|
<div className={styles.buttons}>
|
||||||
|
|
||||||
{
|
{
|
||||||
isPopulated &&
|
isPopulated &&
|
||||||
<SpinnerButton
|
<SpinnerButton
|
||||||
className={styles.searchButton}
|
className={styles.grabReleasesButton}
|
||||||
kind={kinds.SUCCESS}
|
kind={kinds.SUCCESS}
|
||||||
isSpinning={isGrabbing}
|
isSpinning={isGrabbing}
|
||||||
isDisabled={isFetching || !hasIndexers || selectedCount === 0}
|
isDisabled={isFetching || !hasIndexers || selectedCount === 0}
|
||||||
|
Reference in New Issue
Block a user