Small imp

This commit is contained in:
Max 2025-02-07 19:36:53 +03:00
parent f176741afa
commit b82dddc25d

View File

@ -69,7 +69,7 @@ export default function PostCard(props: Post) {
style={{
minWidth: `${Math.min(windowWidth, ref.current?.clientWidth || 0) / 2}px`,
transform: `${
isHovered ? "translateX(0)" : `translateX(calc(-60% + ${windowWidth / 6}px))`
isHovered ? "translateX(0)" : `translateX(calc(-60% + ${Math.min(windowWidth, ref.current?.clientWidth || 0) / 6}px))`
}`
}}
className={`h-72 transition-all duration-[250ms]`}