Skip to content

Commit

Permalink
fix: Adjust Cover Height for Screen Width Changes (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Soopyboo32 authored Oct 30, 2024
1 parent 8245e77 commit 0a170f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/NovelCover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ function NovelCover<TNovel extends CoverItemLibrary | CoverItemPlugin>({

const coverHeight = useMemo(
() => (window.width / numColumns) * (4 / 3),
// eslint-disable-next-line react-hooks/exhaustive-deps
[numColumns],
[window.width, numColumns],
);

const selectNovel = () => onLongPress(item);
Expand Down

0 comments on commit 0a170f1

Please sign in to comment.