mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
[UI] Add Banner View to Artist Index
This commit is contained in:
parent
07b37c1575
commit
25eef250a4
22 changed files with 1496 additions and 1 deletions
|
@ -16,6 +16,8 @@ import ArtistIndex from './ArtistIndex';
|
|||
|
||||
const POSTERS_PADDING = 15;
|
||||
const POSTERS_PADDING_SMALL_SCREEN = 5;
|
||||
const BANNERS_PADDING = 15;
|
||||
const BANNERS_PADDING_SMALL_SCREEN = 5;
|
||||
const TABLE_PADDING = parseInt(dimensions.pageContentBodyPadding);
|
||||
const TABLE_PADDING_SMALL_SCREEN = parseInt(dimensions.pageContentBodyPaddingSmallScreen);
|
||||
|
||||
|
@ -34,6 +36,10 @@ function getScrollTop(view, scrollTop, isSmallScreen) {
|
|||
padding = isSmallScreen ? POSTERS_PADDING_SMALL_SCREEN : POSTERS_PADDING;
|
||||
}
|
||||
|
||||
if (view === 'banners') {
|
||||
padding = isSmallScreen ? BANNERS_PADDING_SMALL_SCREEN : BANNERS_PADDING;
|
||||
}
|
||||
|
||||
return scrollTop + padding;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue