From 0a170f14bca2f83eb2f54aa2d4586c5bec868f19 Mon Sep 17 00:00:00 2001 From: Adam Kemish <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 31 Oct 2024 00:02:21 +0800 Subject: [PATCH] fix: Adjust Cover Height for Screen Width Changes (#1295) --- src/components/NovelCover.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/NovelCover.tsx b/src/components/NovelCover.tsx index 27debc47..2bbdf18e 100644 --- a/src/components/NovelCover.tsx +++ b/src/components/NovelCover.tsx @@ -86,8 +86,7 @@ function NovelCover({ const coverHeight = useMemo( () => (window.width / numColumns) * (4 / 3), - // eslint-disable-next-line react-hooks/exhaustive-deps - [numColumns], + [window.width, numColumns], ); const selectNovel = () => onLongPress(item);