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