Skip to content

Commit

Permalink
make skill section more responsive on user profile, resolved issue #990
Browse files Browse the repository at this point in the history
… (#1029)

* make skill section on user profile responsive

* update

* make skill section responsive

* update

* update

* resolve conflit
  • Loading branch information
anuukriti authored Jun 11, 2024
1 parent 5f38a9d commit 8c9c4aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ProfilesList.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,4 @@
"Monalisha-Roy.json",
"Sahilll15.json",
"Kritika.json"
]
]
4 changes: 2 additions & 2 deletions src/components/Profile/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ function Card({ data }) {
{data.location}
</p>
<div
className="skills-container mt-4 flex h-9 gap-4 overflow-hidden hover:overflow-x-scroll hover:scroll-smooth"
className="skills-container mt-4 flex h-auto flex-wrap gap-1 overflow-hidden hover:overflow-x-scroll hover:scroll-smooth md:gap-4"
ref={cardRef}
>
{data.skills &&
data.skills.map((skill, index) => {
return (
<div
className="inline h-[30px] cursor-default whitespace-nowrap rounded-md bg-secondaryColor px-2 py-1 text-sm text-white"
className="inline h-auto cursor-default whitespace-nowrap rounded-md bg-secondaryColor px-2 py-1 text-[9px] text-white sm:text-sm md:h-[30px]"
key={index}
>
{skill}
Expand Down

0 comments on commit 8c9c4aa

Please sign in to comment.