Fixed comment Scroll

This commit is contained in:
Yash Rathore
2020-11-18 23:39:21 +05:30
parent 946059a1ce
commit ecceca9c59

View File

@@ -89,10 +89,10 @@ const PartProfile = ({
shouldAnimateHover shouldAnimateHover
iconName="chevron-down" iconName="chevron-down"
onClick={() => { onClick={() => {
document.getElementById('section').scrollIntoView() document.getElementById('comment-section').scrollIntoView()
}} }}
> >
{userPart.Part.Comment.length} {userPart.Part.Comment.length} Comments
</Button> </Button>
<Link <Link
to={routes.ide({ to={routes.ide({
@@ -159,7 +159,7 @@ const PartProfile = ({
<div className="h-px bg-indigo-200 mt-8" /> <div className="h-px bg-indigo-200 mt-8" />
<h3 <h3
className="text-indigo-800 text-lg font-roboto tracking-wider mb-4" className="text-indigo-800 text-lg font-roboto tracking-wider mb-4"
id="section" id="comment-section"
> >
Comments Comments
</h3> </h3>