mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
[UI Work] Misc UI Fixes and Tweaks
This commit is contained in:
parent
2a6decdc4c
commit
44cc642ad4
80 changed files with 267 additions and 349 deletions
|
@ -40,17 +40,17 @@ function getScrollTop(view, scrollTop, isSmallScreen) {
|
|||
function createMapStateToProps() {
|
||||
return createSelector(
|
||||
(state) => state.series,
|
||||
(state) => state.seriesIndex,
|
||||
(state) => state.artistIndex,
|
||||
createCommandSelector(commandNames.REFRESH_ARTIST),
|
||||
createCommandSelector(commandNames.RSS_SYNC),
|
||||
createDimensionsSelector(),
|
||||
(series, seriesIndex, isRefreshingSeries, isRssSyncExecuting, dimensionsState) => {
|
||||
(series, artistIndex, isRefreshingArtist, isRssSyncExecuting, dimensionsState) => {
|
||||
return {
|
||||
isRefreshingSeries,
|
||||
isRefreshingArtist,
|
||||
isRssSyncExecuting,
|
||||
isSmallScreen: dimensionsState.isSmallScreen,
|
||||
...series,
|
||||
...seriesIndex
|
||||
...artistIndex
|
||||
};
|
||||
}
|
||||
);
|
||||
|
@ -109,7 +109,7 @@ class ArtistIndexConnector extends Component {
|
|||
this.setState({
|
||||
scrollTop
|
||||
}, () => {
|
||||
scrollPositions.seriesIndex = scrollTop;
|
||||
scrollPositions.artistIndex = scrollTop;
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -156,5 +156,5 @@ ArtistIndexConnector.propTypes = {
|
|||
|
||||
export default withScrollPosition(
|
||||
connect(createMapStateToProps, mapDispatchToProps)(ArtistIndexConnector),
|
||||
'seriesIndex'
|
||||
'artistIndex'
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue