From 62149071ec9553ba75720df22a0a183efb939b66 Mon Sep 17 00:00:00 2001 From: zojgame Date: Tue, 26 Mar 2024 11:29:58 +0500 Subject: [PATCH] fix history slider --- src/components/Histories.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Histories.tsx b/src/components/Histories.tsx index f1be718..8798ecb 100644 --- a/src/components/Histories.tsx +++ b/src/components/Histories.tsx @@ -91,7 +91,7 @@ const Histories = () => { } else if (clientWidth >= 640) { setCardWidth(370); } else { - setCardWidth(344); + setCardWidth(clientWidth - 16); } }, [_document]); @@ -203,7 +203,7 @@ const Histories = () => { {videos.map((video, index) => (