Fixed: Series poster view on mobile devices

(cherry picked from commit c0b30a50281c38a103c2f800064d0ec964fae6e0)
This commit is contained in:
Mark McDowall 2024-01-20 10:36:16 -08:00 committed by servarr
commit e265990845

View file

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