Fixed: Series poster view on mobile devices

Closes #6387
This commit is contained in:
Mark McDowall 2024-01-20 10:36:16 -08:00
parent d336aaf3f0
commit 51493c1052
1 changed files with 8 additions and 4 deletions

View File

@ -190,11 +190,15 @@ export default function SeriesIndexPosters(props: SeriesIndexPostersProps) {
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;
} }