Skip to content

Commit

Permalink
Fixed: Artists poster view on mobile devices
Browse files Browse the repository at this point in the history
(cherry picked from commit c0b30a50281c38a103c2f800064d0ec964fae6e0)

Co-authored-by: Mark McDowall <mark@mcdowall.ca>
  • Loading branch information
servarr[bot] and markus101 committed Jan 21, 2024
1 parent a8618fc commit aa98bb1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions frontend/src/Artist/Index/Posters/ArtistIndexPosters.tsx
Expand Up @@ -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;
}
Expand Down

0 comments on commit aa98bb1

Please sign in to comment.