Skip to content

Commit ac9344c

Browse files
committed
Left align the colored bullets in the profile page
1 parent 210f5c9 commit ac9344c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/components/GridList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ import List, { ListProps } from "@/components/List";
22

33
interface GridListProps extends ListProps {
44
scrollable?: boolean;
5+
className?: string;
56
}
67

78
export default function GridList({
89
children,
910
scrollable,
11+
className = ``,
1012
...props
1113
}: GridListProps) {
1214
return (
1315
<List {...props}>
1416
<div
15-
className={`flex flex-row gap-2 ${scrollable ? "justify-start overflow-x-auto pb-4" : "justify-around flex-wrap"}`}
17+
className={`flex flex-row gap-2 ${scrollable ? "justify-start overflow-x-auto pb-4" : "justify-around flex-wrap"} ${className}`}
1618
>
1719
{children}
1820
</div>

src/components/user/ProfileInformations.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import GridList from "@/components/GridList";
22
import List from "@/components/List";
3-
import ListCard from "@/components/ListCard";
43
import AcademicTile from "./AcademicTile";
54

65
interface ProfileInformationProps {
@@ -26,7 +25,7 @@ export default function ProfileInformations({ user }: ProfileInformationProps) {
2625

2726
{/* Skills */}
2827
{!!skills?.length && (
29-
<GridList title="Skills">
28+
<GridList title="Skills" className="!justify-start">
3029
{skills.map((skill, idx) => (
3130
<span
3231
key={`skills-${idx}`}
@@ -40,7 +39,7 @@ export default function ProfileInformations({ user }: ProfileInformationProps) {
4039

4140
{/* Interested In */}
4241
{!!interestedIn?.length && (
43-
<GridList title="Interested In">
42+
<GridList title="Interested In" className="!justify-start">
4443
{interestedIn.map((interest, idx) => (
4544
<span
4645
key={`interested-in-${idx}`}
@@ -54,7 +53,7 @@ export default function ProfileInformations({ user }: ProfileInformationProps) {
5453

5554
{/* Looking For */}
5655
{!!lookingFor?.length && (
57-
<GridList title="Looking for">
56+
<GridList title="Looking for" className="!justify-start">
5857
{lookingFor.map((looking, idx) => (
5958
<span
6059
key={`looking-for-${idx}`}

src/mocks/data/user.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const MOCK_USER: User = {
3131
),
3232
},
3333
],
34+
skills: ["Python", "Git", "Github", "React", "NodeJS"],
3435
};
3536

3637
export const MOCK_OTHER_USER: User = {

0 commit comments

Comments
 (0)