Fixed: Add Scroller to AlbumRelease selection

Fixes #1040
This commit is contained in:
Qstick 2021-04-02 00:20:52 -04:00
parent 015d2b1396
commit d7433291b8
1 changed files with 25 additions and 20 deletions

View File

@ -6,6 +6,7 @@ import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent'; import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter'; import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader'; import ModalHeader from 'Components/Modal/ModalHeader';
import Scroller from 'Components/Scroller/Scroller';
import Table from 'Components/Table/Table'; import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody'; import TableBody from 'Components/Table/TableBody';
import { scrollDirections } from 'Helpers/Props'; import { scrollDirections } from 'Helpers/Props';
@ -52,26 +53,30 @@ class SelectAlbumReleaseModalContent extends Component {
Overrriding a release here will <b>disable automatic release selection</b> for that album in future. Overrriding a release here will <b>disable automatic release selection</b> for that album in future.
</Alert> </Alert>
<Table <Scroller className={styles.scroller}>
columns={columns} {
{...otherProps} <Table
> columns={columns}
<TableBody> {...otherProps}
{ >
albums.map((item) => { <TableBody>
return ( {
<SelectAlbumReleaseRow albums.map((item) => {
key={item.album.id} return (
matchedReleaseId={item.matchedReleaseId} <SelectAlbumReleaseRow
columns={columns} key={item.album.id}
onAlbumReleaseSelect={onAlbumReleaseSelect} matchedReleaseId={item.matchedReleaseId}
{...item.album} columns={columns}
/> onAlbumReleaseSelect={onAlbumReleaseSelect}
); {...item.album}
}) />
} );
</TableBody> })
</Table> }
</TableBody>
</Table>
}
</Scroller>
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter>