Small imp
This commit is contained in:
parent
b82dddc25d
commit
d1474bce35
@ -69,7 +69,7 @@ export default function PostCard(props: Post) {
|
|||||||
style={{
|
style={{
|
||||||
minWidth: `${Math.min(windowWidth, ref.current?.clientWidth || 0) / 2}px`,
|
minWidth: `${Math.min(windowWidth, ref.current?.clientWidth || 0) / 2}px`,
|
||||||
transform: `${
|
transform: `${
|
||||||
isHovered ? "translateX(0)" : `translateX(calc(-60% + ${Math.min(windowWidth, ref.current?.clientWidth || 0) / 6}px))`
|
isHovered ? "translateX(0)" : `translateX(calc(-50% + ${Math.min(windowWidth, ref.current?.clientWidth || 0) / 6}px))`
|
||||||
}`
|
}`
|
||||||
}}
|
}}
|
||||||
className={`h-72 transition-all duration-[250ms]`}
|
className={`h-72 transition-all duration-[250ms]`}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user