fix history slider

This commit is contained in:
2024-03-26 11:29:58 +05:00
parent aaf519ac75
commit 62149071ec
+2 -2
View File
@@ -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) => (
<div
key={video.id}
className={`relative 2xl:w-[404px] xl:w-[363px] sm:w-[354px] w-[328px] 2xl:h-[720px] xl:h-[647px] sm:h-[632px] h-[546px]`}
className={`relative 2xl:w-[404px] xl:w-[363px] sm:w-[354px] w-[calc(100vw-32px)] 2xl:h-[720px] xl:h-[647px] sm:h-[632px] h-[546px]`}
>
<video
ref={videoRefs[index]}