mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 09:33:52 -07:00
Fixed: Artists poster view on mobile devices
(cherry picked from commit c0b30a50281c38a103c2f800064d0ec964fae6e0) Co-authored-by: Mark McDowall <mark@mcdowall.ca>
This commit is contained in:
parent
a8618fcf49
commit
aa98bb16e9
1 changed files with 8 additions and 4 deletions
|
@ -201,11 +201,15 @@ export default function ArtistIndexPosters(props: ArtistIndexPostersProps) {
|
||||||
|
|
||||||
if (isSmallScreen) {
|
if (isSmallScreen) {
|
||||||
const padding = bodyPaddingSmallScreen - 5;
|
const padding = bodyPaddingSmallScreen - 5;
|
||||||
|
const width = window.innerWidth - padding * 2;
|
||||||
|
const height = window.innerHeight;
|
||||||
|
|
||||||
setSize({
|
if (width !== size.width || height !== size.height) {
|
||||||
width: window.innerWidth - padding * 2,
|
setSize({
|
||||||
height: window.innerHeight,
|
width,
|
||||||
});
|
height,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue