Skip to content

Commit a252d50

Browse files
authored
Merge branch 'main' into add-system-catalog-docs-1
2 parents 4380f6b + 6c5bf5f commit a252d50

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import Card from "../Card";
22
interface IProps {
3-
link: {
4-
text: string;
5-
href: string;
6-
};
7-
content?: string;
8-
title?: string;
9-
style?: React.CSSProperties;
3+
cardLine: {
4+
link: {
5+
text: string;
6+
href: string;
7+
};
8+
content?: string;
9+
title?: string;
10+
style?: React.CSSProperties;
11+
}[];
12+
itemWidth?: number;
1013
}
11-
export default function CardLine({ cardLine }: { cardLine: IProps[] }) {
14+
export default function CardLine({ cardLine, itemWidth }: IProps) {
1215
return cardLine.map((card, i) => {
13-
return <Card key={i} {...card}></Card>;
16+
return <Card key={i} {...card} style={{ width: itemWidth }}></Card>;
1417
});
1518
}

src/components/bootcamp/MainContent/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ export default function MainContent({
4545
marginBottom: 32,
4646
}}
4747
>
48-
<CardLine cardLine={DATA_101.cardLine1} />
48+
<CardLine cardLine={DATA_101.cardLine1} itemWidth={221} />
4949
</div>
5050

5151
<div className={styles.cardLine}>
52-
<CardLine cardLine={DATA_101.cardLine2} />
52+
<CardLine cardLine={DATA_101.cardLine2} itemWidth={305.33} />
5353
</div>
5454

5555
{/* 102 before */}
@@ -72,7 +72,7 @@ export default function MainContent({
7272
</div>
7373
<div className="sub-text">{DATA_103.subText}</div>
7474
<div className={styles.cardLine} style={{ marginTop: 32 }}>
75-
<CardLine cardLine={DATA_103.cardLine} />
75+
<CardLine cardLine={DATA_103.cardLine} itemWidth={474} />
7676
</div>
7777

7878
{/* 104 before */}
@@ -84,7 +84,7 @@ export default function MainContent({
8484
{DATA_104.title}
8585
</div>
8686
<div className={styles.cardLine}>
87-
<CardLine cardLine={DATA_104.cardLine} />
87+
<CardLine cardLine={DATA_104.cardLine} itemWidth={474} />
8888
</div>
8989

9090
{/* Get the Source */}

src/components/common/Breadcrumbs/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function getDefaultPath(): Path[] {
2525
};
2626
});
2727
for (let i = 0; i < path.length - 1; i++) {
28-
path[i].href = `/${path[i].name}`;
28+
path[i].href = `/${path[i].name.toLocaleLowerCase()}`;
2929
}
3030
return path;
3131
}

0 commit comments

Comments
 (0)