Scroll Comment Fixed #112

Closed
Yash-R wants to merge 3 commits from new-branch into main
Showing only changes of commit ecceca9c59 - Show all commits

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>