fix: can't scroll to top when browsing post (#1197)

This commit is contained in:
Stephen Zhou
2023-12-25 19:29:03 +08:00
committed by GitHub
parent e3e3856ecf
commit f728e7b770
+1 -1
View File
@@ -64,7 +64,7 @@ const Card = ({
? externalLink || ""
: `${linkPrefix || ""}/${post.metadata?.content?.slug}${queryString}`
}
scroll={false}
scroll={!linkPrefix}
className={cn(
"xlog-post rounded-2xl flex flex-col items-center group relative",
isShort