Fixed: Series poster view on mobile devices

(cherry picked from commit c0b30a50281c38a103c2f800064d0ec964fae6e0)
pull/4491/head
Mark McDowall 4 months ago committed by servarr
parent 8db7f948b1
commit e265990845

@ -201,11 +201,15 @@ export default function ArtistIndexPosters(props: ArtistIndexPostersProps) {
if (isSmallScreen) {
const padding = bodyPaddingSmallScreen - 5;
setSize({
width: window.innerWidth - padding * 2,
height: window.innerHeight,
});
const width = window.innerWidth - padding * 2;
const height = window.innerHeight;
if (width !== size.width || height !== size.height) {
setSize({
width,
height,
});
}
return;
}

Loading…
Cancel
Save