mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
UI Formatting Cleanup
This commit is contained in:
@@ -66,15 +66,15 @@ class SelectArtistModalContent extends Component {
|
||||
{
|
||||
items.map((item) => {
|
||||
return item.artistName.toLowerCase().includes(filter) ?
|
||||
(
|
||||
<SelectArtistRow
|
||||
key={item.id}
|
||||
id={item.id}
|
||||
artistName={item.artistName}
|
||||
onArtistSelect={onArtistSelect}
|
||||
/>
|
||||
) :
|
||||
null;
|
||||
(
|
||||
<SelectArtistRow
|
||||
key={item.id}
|
||||
id={item.id}
|
||||
artistName={item.artistName}
|
||||
onArtistSelect={onArtistSelect}
|
||||
/>
|
||||
) :
|
||||
null;
|
||||
})
|
||||
}
|
||||
</Scroller>
|
||||
|
||||
+6
-6
@@ -147,9 +147,9 @@ InteractiveImportModalContentConnector.propTypes = {
|
||||
};
|
||||
|
||||
export default connectSection(
|
||||
createMapStateToProps,
|
||||
mapDispatchToProps,
|
||||
undefined,
|
||||
undefined,
|
||||
{ section: 'interactiveImport' }
|
||||
)(InteractiveImportModalContentConnector);
|
||||
createMapStateToProps,
|
||||
mapDispatchToProps,
|
||||
undefined,
|
||||
undefined,
|
||||
{ section: 'interactiveImport' }
|
||||
)(InteractiveImportModalContentConnector);
|
||||
|
||||
@@ -178,7 +178,7 @@ class InteractiveImportRow extends Component {
|
||||
const artistName = artist ? artist.artistName : '';
|
||||
const albumTitle = album ? album.title : '';
|
||||
const trackNumbers = tracks.map((track) => track.trackNumber)
|
||||
.join(', ');
|
||||
.join(', ');
|
||||
|
||||
const showArtistPlaceholder = isSelected && !artist;
|
||||
const showAlbumNumberPlaceholder = isSelected && !!artist && !album;
|
||||
|
||||
@@ -3,7 +3,7 @@ import styles from './InteractiveImportRowCellPlaceholder.css';
|
||||
|
||||
function InteractiveImportRowCellPlaceholder() {
|
||||
return (
|
||||
<span className={styles.placeholder}></span>
|
||||
<span className={styles.placeholder} />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class SelectLanguageModalContentConnector extends Component {
|
||||
onLanguageSelect = ({ value }) => {
|
||||
const languageId = parseInt(value);
|
||||
const language = _.find(this.props.items,
|
||||
(item) => item.language.id === languageId).language;
|
||||
(item) => item.language.id === languageId).language;
|
||||
|
||||
this.props.updateInteractiveImportItem({
|
||||
id: this.props.id,
|
||||
|
||||
@@ -49,7 +49,7 @@ class SelectQualityModalContentConnector extends Component {
|
||||
|
||||
onQualitySelect = ({ qualityId, proper, real }) => {
|
||||
const quality = _.find(this.props.items,
|
||||
(item) => item.quality.id === qualityId).quality;
|
||||
(item) => item.quality.id === qualityId).quality;
|
||||
|
||||
const revision = {
|
||||
version: proper ? 2 : 1,
|
||||
|
||||
Reference in New Issue
Block a user