fix: Adjust Cover Height for Screen Width Changes (#1295)

This commit is contained in:
Adam Kemish
2024-10-31 00:02:21 +08:00
committed by GitHub
parent 8245e77672
commit 0a170f14bc
+1 -2
View File
@@ -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);