Skip to content

Commit

Permalink
fix: now small screens show follow/unfollow on user profile (#3260)
Browse files Browse the repository at this point in the history
Co-authored-by: zeudev <coding@zeu.dev>
  • Loading branch information
nickytonline and zeucapua committed Apr 26, 2024
1 parent dd1cb76 commit 6a8a421
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -218,13 +218,13 @@ const ContributorProfileHeader = ({
{isFollowing ? (
<>
<button onClick={handleFollowClick} className="group flex items-center gap-1 pl-3 pr-7">
<span className="hidden text-center sm:block group-hover:hidden">Following</span>
<span className="block text-center sm:hidden group-hover:block">Unfollow</span>
<span className="hidden text-center group-hover:hidden">Following</span>
<span className="block text-center group-hover:block">Unfollow</span>
</button>
</>
) : (
<>
<button className="w-[6.25rem] text-center hidden md:flex" onClick={handleFollowClick}>
<button className="w-[6.25rem] text-center flex" onClick={handleFollowClick}>
Follow
</button>
</>
Expand Down

0 comments on commit 6a8a421

Please sign in to comment.